0s autopkgtest [18:16:08]: starting date and time: 2026-01-22 18:16:08+0000 0s autopkgtest [18:16:08]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [18:16:08]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.9jurbjs_/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-arm64-6.secgroup --name adt-resolute-arm64-jupyter-notebook-20260122-181608-juju-7f2275-prod-proposed-migration-environment-15-663bc690-e9c1-42f2-9f81-20ba082a43a9 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-arm64-jupyter-notebook-20260122-181608-juju-7f2275-prod-proposed-migration-environment-15-663bc690-e9c1-42f2-9f81-20ba082a43a9 from image adt/ubuntu-resolute-arm64-server-20260122.img (UUID ed27afc7-5f46-4e8b-ad73-864280a0ddbb)... 59s autopkgtest [18:17:07]: testbed dpkg architecture: arm64 59s autopkgtest [18:17:07]: testbed apt version: 3.1.12 59s autopkgtest [18:17:07]: @@@@@@@@@@@@@@@@@@@@ test bed setup 60s autopkgtest [18:17:08]: testbed release detected to be: None 60s autopkgtest [18:17:08]: updating testbed package index (apt update) 61s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 61s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 61s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 61s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 61s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.9 kB] 61s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [815 kB] 62s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [19.2 kB] 62s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 62s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [103 kB] 62s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [3316 B] 62s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [7876 B] 62s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [120 B] 62s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [639 kB] 62s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [16.2 kB] 62s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [4636 B] 62s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [460 B] 64s Fetched 1818 kB in 1s (1241 kB/s) 65s Reading package lists... 66s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 66s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 66s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 66s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 67s Reading package lists... 67s Reading package lists... 67s Building dependency tree... 67s Reading state information... 67s Calculating upgrade... 68s The following packages were automatically installed and are no longer required: 68s python3.13 python3.13-minimal 68s Use 'sudo apt autoremove' to remove them. 68s The following NEW packages will be installed: 68s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 68s The following packages will be upgraded: 68s libpython3-stdlib python3 python3-gdbm python3-minimal 69s 4 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 69s Need to get 6705 kB of archives. 69s After this operation, 26.0 MB of additional disk space will be used. 69s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-minimal arm64 3.14.2-1 [917 kB] 69s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14-minimal arm64 3.14.2-1 [2548 kB] 69s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-gdbm arm64 3.14.2-1 [11.1 kB] 69s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.14.2-1 [28.2 kB] 69s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.14.2-1 [22.9 kB] 69s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-stdlib arm64 3.14.2-1 [2351 kB] 69s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14 arm64 3.14.2-1 [816 kB] 69s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.14.2-1 [10.9 kB] 70s dpkg-preconfigure: unable to re-open stdin: No such file or directory 70s Fetched 6705 kB in 1s (4591 kB/s) 70s Selecting previously unselected package libpython3.14-minimal:arm64. 70s (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 ... 135223 files and directories currently installed.) 70s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_arm64.deb ... 70s Unpacking libpython3.14-minimal:arm64 (3.14.2-1) ... 70s Selecting previously unselected package python3.14-minimal. 70s Preparing to unpack .../python3.14-minimal_3.14.2-1_arm64.deb ... 70s Unpacking python3.14-minimal (3.14.2-1) ... 70s Preparing to unpack .../python3-gdbm_3.14.2-1_arm64.deb ... 70s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 70s Setting up libpython3.14-minimal:arm64 (3.14.2-1) ... 70s Setting up python3.14-minimal (3.14.2-1) ... 71s (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 ... 135565 files and directories currently installed.) 71s Preparing to unpack .../python3-minimal_3.14.2-1_arm64.deb ... 71s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 71s Setting up python3-minimal (3.14.2-1) ... 72s (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 ... 135565 files and directories currently installed.) 72s Preparing to unpack .../python3_3.14.2-1_arm64.deb ... 72s running python pre-rtupdate hooks for python3.14... 72s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 72s Selecting previously unselected package libpython3.14-stdlib:arm64. 72s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_arm64.deb ... 72s Unpacking libpython3.14-stdlib:arm64 (3.14.2-1) ... 72s Selecting previously unselected package python3.14. 72s Preparing to unpack .../python3.14_3.14.2-1_arm64.deb ... 72s Unpacking python3.14 (3.14.2-1) ... 72s Preparing to unpack .../libpython3-stdlib_3.14.2-1_arm64.deb ... 72s Unpacking libpython3-stdlib:arm64 (3.14.2-1) over (3.13.7-1) ... 72s Setting up libpython3.14-stdlib:arm64 (3.14.2-1) ... 72s Setting up python3.14 (3.14.2-1) ... 73s Setting up libpython3-stdlib:arm64 (3.14.2-1) ... 73s Setting up python3-gdbm (3.14.2-1) ... 73s Setting up python3 (3.14.2-1) ... 73s running python rtupdate hooks for python3.14... 73s running python post-rtupdate hooks for python3.14... 74s Processing triggers for man-db (2.13.1-1) ... 74s Processing triggers for systemd (259-1ubuntu2) ... 74s autopkgtest [18:17:22]: upgrading testbed (apt dist-upgrade and autopurge) 74s Reading package lists... 75s Building dependency tree... 75s Reading state information... 75s Calculating upgrade... 75s The following packages were automatically installed and are no longer required: 75s python3.13 python3.13-minimal 75s Use 'sudo apt autoremove' to remove them. 75s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 75s Reading package lists... 76s Building dependency tree... 76s Reading state information... 76s Solving dependencies... 76s The following packages will be REMOVED: 76s python3.13* python3.13-minimal* 76s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 76s After this operation, 7766 kB disk space will be freed. 77s (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 ... 135995 files and directories currently installed.) 77s Removing python3.13 (3.13.11-1) ... 77s Removing python3.13-minimal (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 ... 135968 files and directories currently installed.) 78s Purging configuration files for python3.13-minimal (3.13.11-1) ... 80s autopkgtest [18:17:28]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:41:39 UTC 2026 81s autopkgtest [18:17:29]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 85s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 85s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 85s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 85s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 85s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 85s gpgv: Can't check signature: No public key 85s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 85s autopkgtest [18:17:33]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 86s autopkgtest [18:17:34]: build not needed 86s autopkgtest [18:17:34]: test pytest: preparing testbed 87s Reading package lists... 87s Building dependency tree... 87s Reading state information... 87s Solving dependencies... 87s The following NEW packages will be installed: 87s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 87s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 87s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 87s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 87s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 87s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 87s libsodium23 libsource-highlight-common libsource-highlight4t64 libzmq5 87s node-jed python-notebook-doc python-tinycss2-common python3-all 87s python3-argon2 python3-argon2-cffi-bindings python3-astroid 87s python3-asttokens python3-bleach python3-bs4 python3-cffi python3-comm 87s python3-coverage python3-debugpy python3-decorator python3-defusedxml 87s python3-executing python3-fastjsonschema python3-html5lib python3-iniconfig 87s python3-ipykernel python3-ipython python3-ipython-genutils python3-jedi 87s python3-jupyter-client python3-jupyter-core python3-jupyterlab-pygments 87s python3-matplotlib-inline python3-mistune python3-nbclient python3-nbconvert 87s python3-nbformat python3-nest-asyncio python3-notebook python3-pandocfilters 87s python3-parso python3-platformdirs python3-pluggy python3-ply 87s python3-prometheus-client python3-prompt-toolkit python3-psutil 87s python3-pure-eval python3-pycparser python3-pytest 87s python3-requests-unixsocket python3-send2trash python3-soupsieve 87s python3-stack-data python3-terminado python3-tinycss2 python3-tornado 87s python3-traitlets python3-typeshed python3-wcwidth python3-webencodings 87s python3-zmq python3.13 python3.13-minimal sphinx-rtd-theme-common 88s 0 upgraded, 92 newly installed, 0 to remove and 0 not upgraded. 88s Need to get 35.5 MB of archives. 88s After this operation, 177 MB of additional disk space will be used. 88s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.13-minimal arm64 3.13.11-1 [2346 kB] 88s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-lato all 2.015-1build1 [2779 kB] 88s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.13 arm64 3.13.11-1 [758 kB] 88s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 88s Get:5 http://ftpmaster.internal/ubuntu resolute/universe arm64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 88s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 88s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libbabeltrace1 arm64 1.5.11-5 [157 kB] 88s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 88s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight4t64 arm64 3.1.9-4.3build2 [253 kB] 88s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 gdb arm64 16.3-5ubuntu1 [4720 kB] 88s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-platformdirs all 4.5.1-1 [17.1 kB] 88s Get:12 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 88s Get:13 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 88s Get:14 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-core all 5.9.1-1 [6938 B] 88s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 88s Get:16 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 88s Get:17 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 88s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 88s Get:19 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 88s Get:20 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 88s Get:21 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 88s Get:22 http://ftpmaster.internal/ubuntu resolute/universe arm64 node-jed all 1.1.1-4 [15.2 kB] 88s Get:23 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jed all 1.1.1-4 [2584 B] 88s Get:24 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 88s Get:25 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 88s Get:26 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 89s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 89s Get:28 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-moment all 2.29.4+ds-1 [147 kB] 89s Get:29 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 89s Get:30 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs-text all 2.0.12-2 [9732 B] 89s Get:31 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-text-encoding all 0.7.0-5 [140 kB] 89s Get:32 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-xterm all 5.3.0-4 [475 kB] 89s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-tornado arm64 6.5.4-0.1 [306 kB] 89s Get:34 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-terminado all 0.18.1-1 [13.2 kB] 89s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libargon2-1 arm64 0~20190702+dfsg-5 [21.0 kB] 89s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-ply all 3.11-10 [45.9 kB] 89s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-pycparser all 2.23-1build1 [77.3 kB] 89s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-cffi all 2.0.0-2 [75.5 kB] 89s Get:39 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2-cffi-bindings arm64 25.1.0-2 [15.2 kB] 89s Get:40 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2 arm64 25.1.0-2 [13.8 kB] 89s Get:41 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-comm all 0.2.1-1build1 [7148 B] 89s Get:42 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-coverage arm64 7.8.2+dfsg1-1ubuntu1 [159 kB] 89s Get:43 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-debugpy arm64 1.8.19+ds-1ubuntu1 [878 kB] 89s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-decorator all 5.2.1-2 [28.1 kB] 89s Get:45 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-parso all 0.8.5-1 [68.0 kB] 89s Get:46 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 89s Get:47 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 89s Get:48 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 89s Get:49 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 89s Get:50 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 89s Get:51 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 89s Get:52 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-asttokens all 3.0.1-1 [20.7 kB] 89s Get:53 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-executing all 2.2.1-0.1 [26.2 kB] 89s Get:54 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pure-eval all 0.2.3-1 [11.4 kB] 89s Get:55 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-stack-data all 0.6.3-3 [22.2 kB] 89s Get:56 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython all 8.35.0-2 [575 kB] 89s Get:57 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-psutil arm64 7.1.0-1ubuntu1 [191 kB] 89s Get:58 http://ftpmaster.internal/ubuntu resolute/universe arm64 libnorm1t64 arm64 1.5.9+dfsg-4 [152 kB] 89s Get:59 http://ftpmaster.internal/ubuntu resolute/universe arm64 libpgm-5.3-0t64 arm64 5.3.128~dfsg-2.1build2 [161 kB] 89s Get:60 http://ftpmaster.internal/ubuntu resolute/main arm64 libsodium23 arm64 1.0.18-2 [120 kB] 89s Get:61 http://ftpmaster.internal/ubuntu resolute/universe arm64 libzmq5 arm64 4.3.5-1build3 [244 kB] 89s Get:62 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-zmq arm64 27.1.0-1 [231 kB] 89s Get:63 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 89s Get:64 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nest-asyncio all 1.6.0-1 [6686 B] 89s Get:65 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipykernel all 6.30.1-1 [82.8 kB] 89s Get:66 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 89s Get:67 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 89s Get:68 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 89s Get:69 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 89s Get:70 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-html5lib all 1.2-3 [90.6 kB] 89s Get:71 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-bleach all 6.3.0-1 [44.2 kB] 89s Get:72 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-soupsieve all 2.8.1-1 [33.7 kB] 89s Get:73 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 89s Get:74 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 89s Get:75 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 89s Get:76 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-mistune all 3.1.4-1 [35.0 kB] 89s Get:77 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 89s Get:78 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbformat all 5.10.4-1 [39.2 kB] 89s Get:79 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbclient all 0.10.4-1 [22.6 kB] 89s Get:80 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 89s Get:81 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbconvert all 7.16.6-1 [140 kB] 89s Get:82 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 89s Get:83 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-send2trash all 1.8.3-1 [14.6 kB] 89s Get:84 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 89s Get:85 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 89s Get:86 http://ftpmaster.internal/ubuntu resolute/main arm64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 89s Get:87 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 89s Get:88 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-all arm64 3.14.2-1 [888 B] 89s Get:89 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-iniconfig all 2.1.0-2 [6962 B] 89s Get:90 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pluggy all 1.6.0-2 [21.1 kB] 89s Get:91 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pytest all 9.0.2-2 [277 kB] 89s Get:92 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 91s Fetched 35.5 MB in 2s (19.8 MB/s) 91s Selecting previously unselected package python3.13-minimal. 91s (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 ... 135970 files and directories currently installed.) 91s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_arm64.deb ... 91s Unpacking python3.13-minimal (3.13.11-1) ... 91s Selecting previously unselected package fonts-lato. 91s Preparing to unpack .../01-fonts-lato_2.015-1build1_all.deb ... 91s Unpacking fonts-lato (2.015-1build1) ... 91s Selecting previously unselected package python3.13. 91s Preparing to unpack .../02-python3.13_3.13.11-1_arm64.deb ... 91s Unpacking python3.13 (3.13.11-1) ... 91s Selecting previously unselected package fonts-font-awesome. 91s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 91s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 91s Selecting previously unselected package fonts-glyphicons-halflings. 91s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 91s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 91s Selecting previously unselected package fonts-mathjax. 91s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 91s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 91s Selecting previously unselected package libbabeltrace1:arm64. 91s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_arm64.deb ... 91s Unpacking libbabeltrace1:arm64 (1.5.11-5) ... 91s Selecting previously unselected package libsource-highlight-common. 91s Preparing to unpack .../07-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 91s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 91s Selecting previously unselected package libsource-highlight4t64:arm64. 91s Preparing to unpack .../08-libsource-highlight4t64_3.1.9-4.3build2_arm64.deb ... 91s Unpacking libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 91s Selecting previously unselected package gdb. 91s Preparing to unpack .../09-gdb_16.3-5ubuntu1_arm64.deb ... 91s Unpacking gdb (16.3-5ubuntu1) ... 91s Selecting previously unselected package python3-platformdirs. 91s Preparing to unpack .../10-python3-platformdirs_4.5.1-1_all.deb ... 91s Unpacking python3-platformdirs (4.5.1-1) ... 91s Selecting previously unselected package python3-traitlets. 91s Preparing to unpack .../11-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 91s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 91s Selecting previously unselected package python3-jupyter-core. 91s Preparing to unpack .../12-python3-jupyter-core_5.9.1-1_all.deb ... 91s Unpacking python3-jupyter-core (5.9.1-1) ... 91s Selecting previously unselected package jupyter-core. 91s Preparing to unpack .../13-jupyter-core_5.9.1-1_all.deb ... 91s Unpacking jupyter-core (5.9.1-1) ... 91s Selecting previously unselected package libjs-underscore. 91s Preparing to unpack .../14-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 91s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 91s Selecting previously unselected package libjs-backbone. 91s Preparing to unpack .../15-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 91s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 91s Selecting previously unselected package libjs-bootstrap. 91s Preparing to unpack .../16-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 91s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 91s Selecting previously unselected package libjs-jquery. 91s Preparing to unpack .../17-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 91s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 91s Selecting previously unselected package libjs-bootstrap-tour. 91s Preparing to unpack .../18-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 91s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 91s Selecting previously unselected package libjs-codemirror. 91s Preparing to unpack .../19-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 91s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 91s Selecting previously unselected package libjs-es6-promise. 91s Preparing to unpack .../20-libjs-es6-promise_4.2.8-12_all.deb ... 91s Unpacking libjs-es6-promise (4.2.8-12) ... 91s Selecting previously unselected package node-jed. 91s Preparing to unpack .../21-node-jed_1.1.1-4_all.deb ... 91s Unpacking node-jed (1.1.1-4) ... 91s Selecting previously unselected package libjs-jed. 91s Preparing to unpack .../22-libjs-jed_1.1.1-4_all.deb ... 91s Unpacking libjs-jed (1.1.1-4) ... 91s Selecting previously unselected package libjs-jquery-typeahead. 91s Preparing to unpack .../23-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 91s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 91s Selecting previously unselected package libjs-jquery-ui. 91s Preparing to unpack .../24-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 91s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 91s Selecting previously unselected package libjs-marked. 91s Preparing to unpack .../25-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 91s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 91s Selecting previously unselected package libjs-mathjax. 91s Preparing to unpack .../26-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 91s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 92s Selecting previously unselected package libjs-moment. 92s Preparing to unpack .../27-libjs-moment_2.29.4+ds-1_all.deb ... 92s Unpacking libjs-moment (2.29.4+ds-1) ... 92s Selecting previously unselected package libjs-requirejs. 92s Preparing to unpack .../28-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 92s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 92s Selecting previously unselected package libjs-requirejs-text. 92s Preparing to unpack .../29-libjs-requirejs-text_2.0.12-2_all.deb ... 92s Unpacking libjs-requirejs-text (2.0.12-2) ... 92s Selecting previously unselected package libjs-text-encoding. 92s Preparing to unpack .../30-libjs-text-encoding_0.7.0-5_all.deb ... 92s Unpacking libjs-text-encoding (0.7.0-5) ... 92s Selecting previously unselected package libjs-xterm. 92s Preparing to unpack .../31-libjs-xterm_5.3.0-4_all.deb ... 92s Unpacking libjs-xterm (5.3.0-4) ... 92s Selecting previously unselected package python3-tornado. 92s Preparing to unpack .../32-python3-tornado_6.5.4-0.1_arm64.deb ... 92s Unpacking python3-tornado (6.5.4-0.1) ... 92s Selecting previously unselected package python3-terminado. 92s Preparing to unpack .../33-python3-terminado_0.18.1-1_all.deb ... 92s Unpacking python3-terminado (0.18.1-1) ... 92s Selecting previously unselected package libargon2-1:arm64. 92s Preparing to unpack .../34-libargon2-1_0~20190702+dfsg-5_arm64.deb ... 92s Unpacking libargon2-1:arm64 (0~20190702+dfsg-5) ... 92s Selecting previously unselected package python3-ply. 92s Preparing to unpack .../35-python3-ply_3.11-10_all.deb ... 92s Unpacking python3-ply (3.11-10) ... 92s Selecting previously unselected package python3-pycparser. 92s Preparing to unpack .../36-python3-pycparser_2.23-1build1_all.deb ... 92s Unpacking python3-pycparser (2.23-1build1) ... 92s Selecting previously unselected package python3-cffi. 92s Preparing to unpack .../37-python3-cffi_2.0.0-2_all.deb ... 92s Unpacking python3-cffi (2.0.0-2) ... 92s Selecting previously unselected package python3-argon2-cffi-bindings. 92s Preparing to unpack .../38-python3-argon2-cffi-bindings_25.1.0-2_arm64.deb ... 92s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 92s Selecting previously unselected package python3-argon2. 92s Preparing to unpack .../39-python3-argon2_25.1.0-2_arm64.deb ... 92s Unpacking python3-argon2 (25.1.0-2) ... 92s Selecting previously unselected package python3-comm. 92s Preparing to unpack .../40-python3-comm_0.2.1-1build1_all.deb ... 92s Unpacking python3-comm (0.2.1-1build1) ... 92s Selecting previously unselected package python3-coverage. 92s Preparing to unpack .../41-python3-coverage_7.8.2+dfsg1-1ubuntu1_arm64.deb ... 92s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 92s Selecting previously unselected package python3-debugpy. 92s Preparing to unpack .../42-python3-debugpy_1.8.19+ds-1ubuntu1_arm64.deb ... 92s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 92s Selecting previously unselected package python3-decorator. 92s Preparing to unpack .../43-python3-decorator_5.2.1-2_all.deb ... 92s Unpacking python3-decorator (5.2.1-2) ... 93s Selecting previously unselected package python3-parso. 93s Preparing to unpack .../44-python3-parso_0.8.5-1_all.deb ... 93s Unpacking python3-parso (0.8.5-1) ... 93s Selecting previously unselected package python3-typeshed. 93s Preparing to unpack .../45-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 93s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 93s Selecting previously unselected package python3-jedi. 93s Preparing to unpack .../46-python3-jedi_0.19.1+ds1-1build1_all.deb ... 93s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 93s Selecting previously unselected package python3-matplotlib-inline. 93s Preparing to unpack .../47-python3-matplotlib-inline_0.2.1-1_all.deb ... 93s Unpacking python3-matplotlib-inline (0.2.1-1) ... 93s Selecting previously unselected package python3-wcwidth. 93s Preparing to unpack .../48-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 93s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 93s Selecting previously unselected package python3-prompt-toolkit. 93s Preparing to unpack .../49-python3-prompt-toolkit_3.0.52-2_all.deb ... 93s Unpacking python3-prompt-toolkit (3.0.52-2) ... 93s Selecting previously unselected package python3-astroid. 93s Preparing to unpack .../50-python3-astroid_4.0.2-1ubuntu1_all.deb ... 93s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 93s Selecting previously unselected package python3-asttokens. 93s Preparing to unpack .../51-python3-asttokens_3.0.1-1_all.deb ... 93s Unpacking python3-asttokens (3.0.1-1) ... 93s Selecting previously unselected package python3-executing. 93s Preparing to unpack .../52-python3-executing_2.2.1-0.1_all.deb ... 93s Unpacking python3-executing (2.2.1-0.1) ... 93s Selecting previously unselected package python3-pure-eval. 93s Preparing to unpack .../53-python3-pure-eval_0.2.3-1_all.deb ... 94s Unpacking python3-pure-eval (0.2.3-1) ... 94s Selecting previously unselected package python3-stack-data. 94s Preparing to unpack .../54-python3-stack-data_0.6.3-3_all.deb ... 94s Unpacking python3-stack-data (0.6.3-3) ... 94s Selecting previously unselected package python3-ipython. 94s Preparing to unpack .../55-python3-ipython_8.35.0-2_all.deb ... 94s Unpacking python3-ipython (8.35.0-2) ... 94s Selecting previously unselected package python3-psutil. 94s Preparing to unpack .../56-python3-psutil_7.1.0-1ubuntu1_arm64.deb ... 94s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 94s Selecting previously unselected package libnorm1t64:arm64. 94s Preparing to unpack .../57-libnorm1t64_1.5.9+dfsg-4_arm64.deb ... 94s Unpacking libnorm1t64:arm64 (1.5.9+dfsg-4) ... 94s Selecting previously unselected package libpgm-5.3-0t64:arm64. 94s Preparing to unpack .../58-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_arm64.deb ... 94s Unpacking libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 94s Selecting previously unselected package libsodium23:arm64. 94s Preparing to unpack .../59-libsodium23_1.0.18-2_arm64.deb ... 94s Unpacking libsodium23:arm64 (1.0.18-2) ... 94s Selecting previously unselected package libzmq5:arm64. 94s Preparing to unpack .../60-libzmq5_4.3.5-1build3_arm64.deb ... 94s Unpacking libzmq5:arm64 (4.3.5-1build3) ... 94s Selecting previously unselected package python3-zmq. 94s Preparing to unpack .../61-python3-zmq_27.1.0-1_arm64.deb ... 94s Unpacking python3-zmq (27.1.0-1) ... 94s Selecting previously unselected package python3-jupyter-client. 94s Preparing to unpack .../62-python3-jupyter-client_8.7.0-1_all.deb ... 94s Unpacking python3-jupyter-client (8.7.0-1) ... 94s Selecting previously unselected package python3-nest-asyncio. 94s Preparing to unpack .../63-python3-nest-asyncio_1.6.0-1_all.deb ... 94s Unpacking python3-nest-asyncio (1.6.0-1) ... 94s Selecting previously unselected package python3-ipykernel. 94s Preparing to unpack .../64-python3-ipykernel_6.30.1-1_all.deb ... 94s Unpacking python3-ipykernel (6.30.1-1) ... 94s Selecting previously unselected package python3-ipython-genutils. 94s Preparing to unpack .../65-python3-ipython-genutils_0.2.0-7_all.deb ... 94s Unpacking python3-ipython-genutils (0.2.0-7) ... 94s Selecting previously unselected package python-tinycss2-common. 94s Preparing to unpack .../66-python-tinycss2-common_1.5.1-1_all.deb ... 94s Unpacking python-tinycss2-common (1.5.1-1) ... 94s Selecting previously unselected package python3-webencodings. 94s Preparing to unpack .../67-python3-webencodings_0.5.1-5build1_all.deb ... 94s Unpacking python3-webencodings (0.5.1-5build1) ... 94s Selecting previously unselected package python3-tinycss2. 94s Preparing to unpack .../68-python3-tinycss2_1.5.1-1_all.deb ... 94s Unpacking python3-tinycss2 (1.5.1-1) ... 94s Selecting previously unselected package python3-html5lib. 94s Preparing to unpack .../69-python3-html5lib_1.2-3_all.deb ... 94s Unpacking python3-html5lib (1.2-3) ... 94s Selecting previously unselected package python3-bleach. 94s Preparing to unpack .../70-python3-bleach_6.3.0-1_all.deb ... 94s Unpacking python3-bleach (6.3.0-1) ... 94s Selecting previously unselected package python3-soupsieve. 94s Preparing to unpack .../71-python3-soupsieve_2.8.1-1_all.deb ... 94s Unpacking python3-soupsieve (2.8.1-1) ... 94s Selecting previously unselected package python3-bs4. 94s Preparing to unpack .../72-python3-bs4_4.14.3-2build1_all.deb ... 94s Unpacking python3-bs4 (4.14.3-2build1) ... 94s Selecting previously unselected package python3-defusedxml. 95s Preparing to unpack .../73-python3-defusedxml_0.7.1-3build1_all.deb ... 95s Unpacking python3-defusedxml (0.7.1-3build1) ... 95s Selecting previously unselected package python3-jupyterlab-pygments. 95s Preparing to unpack .../74-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 95s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 95s Selecting previously unselected package python3-mistune. 95s Preparing to unpack .../75-python3-mistune_3.1.4-1_all.deb ... 95s Unpacking python3-mistune (3.1.4-1) ... 95s Selecting previously unselected package python3-fastjsonschema. 95s Preparing to unpack .../76-python3-fastjsonschema_2.21.1-1_all.deb ... 95s Unpacking python3-fastjsonschema (2.21.1-1) ... 95s Selecting previously unselected package python3-nbformat. 95s Preparing to unpack .../77-python3-nbformat_5.10.4-1_all.deb ... 95s Unpacking python3-nbformat (5.10.4-1) ... 95s Selecting previously unselected package python3-nbclient. 95s Preparing to unpack .../78-python3-nbclient_0.10.4-1_all.deb ... 95s Unpacking python3-nbclient (0.10.4-1) ... 95s Selecting previously unselected package python3-pandocfilters. 95s Preparing to unpack .../79-python3-pandocfilters_1.5.1-1_all.deb ... 95s Unpacking python3-pandocfilters (1.5.1-1) ... 95s Selecting previously unselected package python3-nbconvert. 95s Preparing to unpack .../80-python3-nbconvert_7.16.6-1_all.deb ... 95s Unpacking python3-nbconvert (7.16.6-1) ... 95s Selecting previously unselected package python3-prometheus-client. 95s Preparing to unpack .../81-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 95s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 95s Selecting previously unselected package python3-send2trash. 95s Preparing to unpack .../82-python3-send2trash_1.8.3-1_all.deb ... 95s Unpacking python3-send2trash (1.8.3-1) ... 95s Selecting previously unselected package python3-notebook. 95s Preparing to unpack .../83-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 95s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 95s Selecting previously unselected package jupyter-notebook. 95s Preparing to unpack .../84-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 95s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 95s Selecting previously unselected package sphinx-rtd-theme-common. 95s Preparing to unpack .../85-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 95s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 95s Selecting previously unselected package python-notebook-doc. 95s Preparing to unpack .../86-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 95s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 95s Selecting previously unselected package python3-all. 95s Preparing to unpack .../87-python3-all_3.14.2-1_arm64.deb ... 95s Unpacking python3-all (3.14.2-1) ... 95s Selecting previously unselected package python3-iniconfig. 95s Preparing to unpack .../88-python3-iniconfig_2.1.0-2_all.deb ... 95s Unpacking python3-iniconfig (2.1.0-2) ... 95s Selecting previously unselected package python3-pluggy. 95s Preparing to unpack .../89-python3-pluggy_1.6.0-2_all.deb ... 95s Unpacking python3-pluggy (1.6.0-2) ... 95s Selecting previously unselected package python3-pytest. 95s Preparing to unpack .../90-python3-pytest_9.0.2-2_all.deb ... 95s Unpacking python3-pytest (9.0.2-2) ... 96s Selecting previously unselected package python3-requests-unixsocket. 96s Preparing to unpack .../91-python3-requests-unixsocket_1.0.1-1_all.deb ... 96s Unpacking python3-requests-unixsocket (1.0.1-1) ... 96s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 96s Setting up python3-iniconfig (2.1.0-2) ... 96s Setting up python3-tornado (6.5.4-0.1) ... 97s Setting up libnorm1t64:arm64 (1.5.9+dfsg-4) ... 97s Setting up python3-pure-eval (0.2.3-1) ... 97s Setting up python3-send2trash (1.8.3-1) ... 97s Setting up fonts-lato (2.015-1build1) ... 97s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 97s Setting up libsodium23:arm64 (1.0.18-2) ... 97s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 97s Setting up libjs-requirejs-text (2.0.12-2) ... 97s Setting up python3-parso (0.8.5-1) ... 97s Setting up python3-defusedxml (0.7.1-3build1) ... 98s Setting up python3-ipython-genutils (0.2.0-7) ... 98s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 98s Setting up libargon2-1:arm64 (0~20190702+dfsg-5) ... 98s Setting up python3-ply (3.11-10) ... 98s Setting up libjs-moment (2.29.4+ds-1) ... 98s Setting up python3-pandocfilters (1.5.1-1) ... 99s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 99s Setting up libjs-es6-promise (4.2.8-12) ... 99s Setting up libjs-text-encoding (0.7.0-5) ... 99s Setting up python3-webencodings (0.5.1-5build1) ... 99s Setting up python3-platformdirs (4.5.1-1) ... 99s Setting up python3-psutil (7.1.0-1ubuntu1) ... 99s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 99s Setting up python3-pycparser (2.23-1build1) ... 100s Setting up python3-requests-unixsocket (1.0.1-1) ... 100s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 100s Setting up libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 100s Setting up python3-decorator (5.2.1-2) ... 100s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 101s Setting up node-jed (1.1.1-4) ... 101s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 101s Setting up libjs-xterm (5.3.0-4) ... 101s Setting up python3-nest-asyncio (1.6.0-1) ... 101s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 101s Setting up libjs-jed (1.1.1-4) ... 101s Setting up python3-html5lib (1.2-3) ... 101s Setting up libbabeltrace1:arm64 (1.5.11-5) ... 101s Setting up python3-pluggy (1.6.0-2) ... 102s Setting up python3-fastjsonschema (2.21.1-1) ... 102s Setting up python3-terminado (0.18.1-1) ... 102s Setting up python3-astroid (4.0.2-1ubuntu1) ... 103s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 103s Setting up python-tinycss2-common (1.5.1-1) ... 103s Setting up python3.13-minimal (3.13.11-1) ... 104s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 104s Setting up python3-mistune (3.1.4-1) ... 104s Setting up python3-soupsieve (2.8.1-1) ... 104s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 104s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 104s Setting up python3-jupyter-core (5.9.1-1) ... 105s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 105s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 105s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 105s Setting up python3-prompt-toolkit (3.0.52-2) ... 105s Setting up python3-tinycss2 (1.5.1-1) ... 106s Setting up libzmq5:arm64 (4.3.5-1build3) ... 106s Setting up python3-jedi (0.19.1+ds1-1build1) ... 106s Setting up python3.13 (3.13.11-1) ... 107s Setting up python3-asttokens (3.0.1-1) ... 108s Setting up python3-pytest (9.0.2-2) ... 108s Setting up python3-cffi (2.0.0-2) ... 109s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 109s Setting up python3-all (3.14.2-1) ... 109s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 109s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 109s Setting up libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 109s Setting up python3-nbformat (5.10.4-1) ... 109s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 109s Setting up python3-bs4 (4.14.3-2build1) ... 110s Setting up python3-bleach (6.3.0-1) ... 110s Setting up python3-matplotlib-inline (0.2.1-1) ... 110s Setting up python3-comm (0.2.1-1build1) ... 110s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 111s Setting up gdb (16.3-5ubuntu1) ... 111s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 111s Setting up python3-executing (2.2.1-0.1) ... 111s Setting up python3-zmq (27.1.0-1) ... 111s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 111s Setting up python3-argon2 (25.1.0-2) ... 112s Setting up python3-jupyter-client (8.7.0-1) ... 112s Setting up jupyter-core (5.9.1-1) ... 112s Setting up python3-stack-data (0.6.3-3) ... 112s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 113s Setting up python3-nbclient (0.10.4-1) ... 114s Setting up python3-ipython (8.35.0-2) ... 114s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 114s return result 115s Setting up python3-ipykernel (6.30.1-1) ... 115s Setting up python3-nbconvert (7.16.6-1) ... 115s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 116s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 116s Processing triggers for systemd (259-1ubuntu2) ... 116s Processing triggers for man-db (2.13.1-1) ... 116s Processing triggers for libc-bin (2.42-2ubuntu4) ... 118s autopkgtest [18:18:06]: test pytest: [----------------------- 118s Testing with python3.13 118s *** 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 122s ============================= test session starts ============================== 122s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 122s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 122s plugins: typeguard-4.4.4 122s collected 330 items / 6 deselected / 324 selected 122s 122s auth/tests/test_login.py .. [ 0%] 123s auth/tests/test_security.py .... [ 1%] 123s bundler/tests/test_bundler_api.py ..... [ 3%] 123s bundler/tests/test_bundler_tools.py ............. [ 7%] 123s bundler/tests/test_bundlerextension.py ... [ 8%] 123s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 123s services/api/tests/test_api.py ... [ 11%] 123s services/config/tests/test_config_api.py ... [ 12%] 124s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 125s ................s...........ss..s......................... [ 38%] 125s services/contents/tests/test_fileio.py ... [ 39%] 125s services/contents/tests/test_largefilemanager.py . [ 39%] 126s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 126s .... [ 50%] 138s services/kernels/tests/test_kernels_api.py ........... [ 54%] 138s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 139s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 139s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 144s services/sessions/tests/test_sessions_api.py ...................... [ 66%] 148s terminal/tests/test_terminals_api.py ........ [ 68%] 148s tests/test_config_manager.py . [ 68%] 148s tests/test_files.py ..... [ 70%] 148s tests/test_gateway.py ...... [ 72%] 148s tests/test_i18n.py . [ 72%] 148s tests/test_log.py . [ 72%] 150s tests/test_nbextensions.py ................................... [ 83%] 151s tests/test_notebookapp.py .......................... [ 91%] 151s tests/test_paths.py ... [ 92%] 151s tests/test_serialize.py .. [ 93%] 152s tests/test_serverextensions.py ..... [ 94%] 152s tests/test_traittypes.py ........... [ 98%] 152s tests/test_utils.py ....s [ 99%] 153s tree/tests/test_tree_handler.py . [100%] 153s 153s =============================== warnings summary =============================== 153s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 153s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 153s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 153s return LooseVersion(v) >= LooseVersion(check) 153s 153s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 153s auth/tests/test_login.py: 2 warnings 153s bundler/tests/test_bundler_api.py: 2 warnings 153s services/api/tests/test_api.py: 4 warnings 153s services/config/tests/test_config_api.py: 7 warnings 153s services/contents/tests/test_contents_api.py: 318 warnings 153s services/kernels/tests/test_kernels_api.py: 105 warnings 153s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 153s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 153s services/sessions/tests/test_sessionmanager.py: 9 warnings 153s services/sessions/tests/test_sessions_api.py: 128 warnings 153s terminal/tests/test_terminals_api.py: 50 warnings 153s tests/test_files.py: 2 warnings 153s tests/test_gateway.py: 21 warnings 153s tests/test_notebookapp.py: 8 warnings 153s tests/test_paths.py: 2 warnings 153s tree/tests/test_tree_handler.py: 2 warnings 153s /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). 153s dt = unaware(*args, **kwargs) 153s 153s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 153s /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 153s pytestmark = pytest.mark.integration_tests 153s 153s bundler/tests/test_bundler_api.py: 6 warnings 153s services/api/tests/test_api.py: 6 warnings 153s services/contents/tests/test_contents_api.py: 806 warnings 153s services/contents/tests/test_largefilemanager.py: 42 warnings 153s services/contents/tests/test_manager.py: 526 warnings 153s tests/test_files.py: 8 warnings 153s tree/tests/test_tree_handler.py: 6 warnings 153s /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). 153s dt = unaware(*args, **kwargs) 153s 153s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 153s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 153s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 153s loop.make_current() 153s 153s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 153s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 153s /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/tmpw7_jg9b3/data/kernels/sample 2 153s d = self.find_kernel_specs() 153s 153s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 153s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: 153s 153s Traceback (most recent call last): 153s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 68, in __del__ 153s self.close() 153s ~~~~~~~~~~^^ 153s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 63, in close 153s self._cursor.close() 153s ~~~~~~~~~~~~~~~~~~^^ 153s sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 247344864085856 and this is thread id 247344658182528. 153s 153s Enable tracemalloc to get traceback where the object was allocated. 153s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 153s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 153s 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 153s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 153s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 153s /usr/lib/python3.13/pty.py:95: DeprecationWarning: This process (pid=3585) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 153s pid, fd = os.forkpty() 153s 153s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 153s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 153s /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). 153s dt = datetime.utcnow().isoformat() + 'Z' 153s 153s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 153s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 153s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 153s /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. 153s archive.extractall(nbext) 153s 153s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 153s =========================== short test summary info ============================ 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 153s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 153s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 154s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 154s ======== 304 passed, 20 skipped, 6 deselected, 2092 warnings in 34.46s ========= 154s *** END OF RUN 1: ALL TESTS RUN HAVE NOW PASSED/XFAILED *** 154s Testing with python3.14 154s *** 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 157s ============================= test session starts ============================== 157s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 157s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 157s plugins: typeguard-4.4.4 157s collected 330 items / 6 deselected / 324 selected 157s 158s auth/tests/test_login.py .. [ 0%] 158s auth/tests/test_security.py .... [ 1%] 158s bundler/tests/test_bundler_api.py ..... [ 3%] 158s bundler/tests/test_bundler_tools.py ............. [ 7%] 159s bundler/tests/test_bundlerextension.py ... [ 8%] 159s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 159s services/api/tests/test_api.py ... [ 11%] 159s services/config/tests/test_config_api.py ... [ 12%] 160s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 161s ................s...........ss..s......................... [ 38%] 161s services/contents/tests/test_fileio.py ... [ 39%] 161s services/contents/tests/test_largefilemanager.py . [ 39%] 162s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 162s .... [ 50%] 173s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 173s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 173s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 173s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 175s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 175s F [ 66%] 180s terminal/tests/test_terminals_api.py ........ [ 68%] 180s tests/test_config_manager.py . [ 68%] 180s tests/test_files.py ..... [ 70%] 180s tests/test_gateway.py ...... [ 72%] 180s tests/test_i18n.py . [ 72%] 180s tests/test_log.py . [ 72%] 181s tests/test_nbextensions.py ................................... [ 83%] 182s tests/test_notebookapp.py .......................... [ 91%] 182s tests/test_paths.py ... [ 92%] 182s tests/test_serialize.py .. [ 93%] 183s tests/test_serverextensions.py ..... [ 94%] 183s tests/test_traittypes.py ........... [ 98%] 184s tests/test_utils.py ....s [ 99%] 185s tree/tests/test_tree_handler.py . [100%] 185s 185s ==================================== ERRORS ==================================== 185s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 185s 185s self = 185s 185s def tearDown(self): 185s for k in self.kern_api.list().json(): 185s > self.kern_api.shutdown(k['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Could not import runpy._run_module_as_main 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 15, in 185s import importlib.util 185s File "/usr/lib/python3.14/importlib/util.py", line 2, in 185s from ._abc import Loader 185s File "/usr/lib/python3.14/importlib/_abc.py", line 0, in 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-4a9a2322-ae19-45bc-890e-585580c765bd.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60127 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40163 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a9a2322-ae19-45bc-890e-585580c765bd, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.060000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-b30a10cd-52ce-4cfd-b695-ffc15110a13f.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40997 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48807 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: b30a10cd-52ce-4cfd-b695-ffc15110a13f, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.190000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.150000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b30a10cd-52ce-4cfd-b695-ffc15110a13f 185s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f/interrupt (::1) 3.260000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 185s yield maybe_future(km.restart_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 185s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 185s await ensure_async(kernel.restart_kernel(now=now)) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 185s await self._async_shutdown_kernel(now=now, restart=True) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f/restart (::1) 10.310000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a9a2322-ae19-45bc-890e-585580c765bd 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a9a2322-ae19-45bc-890e-585580c765bd 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 185s yielded = ctx_run(next, result) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 185s import jupyter_client 185s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 185s from .asynchronous import AsyncKernelClient 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 185s from .client import AsyncKernelClient # noqa 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 185s import zmq.asyncio 185s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 185s import asyncio 185s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 185s from .base_events import * 185s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 185s import concurrent.futures 185s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 185s from concurrent.futures._base import (FIRST_COMPLETED, 185s ...<9 lines>... 185s as_completed) 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 185s import logging 185s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 185s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 185s File "/usr/lib/python3.14/traceback.py", line 12, in 185s import _colorize 185s File "/usr/lib/python3.14/_colorize.py", line 5, in 185s from dataclasses import dataclass, field, Field 185s File "/usr/lib/python3.14/dataclasses.py", line 5, in 185s import inspect 185s File "/usr/lib/python3.14/inspect.py", line 1542, in 185s _Traceback = namedtuple('_Traceback', 'filename lineno function code_context index') 185s File "/usr/lib/python3.14/collections/__init__.py", line 447, in namedtuple 185s __new__ = eval(code, namespace) 185s File "", line 0, in 185s KeyboardInterrupt 185s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 185s 185s self = 185s 185s def tearDown(self): 185s for k in self.kern_api.list().json(): 185s > self.kern_api.shutdown(k['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Could not import runpy._run_module_as_main 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 14, in 185s import importlib.machinery # importlib first so we can test #15386 via -m 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 924, in _load_unlocked 185s File "", line 822, in module_from_spec 185s File "", line 801, in _init_module_attrs 185s File "", line 641, in cached 185s File "", line 369, in _get_cached 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-81d68830-bbd6-447a-8294-e3aa2088cfdc.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56059 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43937 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81d68830-bbd6-447a-8294-e3aa2088cfdc, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.500000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-0b805b43-36d5-4e1c-afff-1c9a2b17c8b8.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39015 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52501 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8 185s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8/interrupt (::1) 0.990000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 185s yield maybe_future(km.restart_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 185s result = coro.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 185s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 185s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 185s yield self # This tells Task to wait for completion. 185s ^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 185s await ensure_async(kernel.restart_kernel(now=now)) 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 185s await self._async_shutdown_kernel(now=now, restart=True) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8/restart (::1) 7.040000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 185s import jupyter_client 185s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 185s from .asynchronous import AsyncKernelClient 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 185s from .client import AsyncKernelClient # noqa 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 185s import zmq.asyncio 185s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 185s from zmq import backend 185s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 185s _ns = select_backend(first) 185s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 185s mod = import_module(name) 185s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 185s return _bootstrap._gcd_import(name[level:], package, level) 185s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 185s from . import _zmq 185s File "", line 648, in parent 185s KeyboardInterrupt 185s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/32201c37-51bd-4bf8-ae5f-2fdd50d26d5e 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-27f874f8-186c-4813-bd80-be2bdbcae010.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35231 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40273 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27f874f8-186c-4813-bd80-be2bdbcae010, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.650000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.470000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699 (::1) 1.310000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27f874f8-186c-4813-bd80-be2bdbcae010 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27f874f8-186c-4813-bd80-be2bdbcae010 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/32201c37-51bd-4bf8-ae5f-2fdd50d26d5e (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/32201c37-51bd-4bf8-ae5f-2fdd50d26d5e', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-48345aba-4e80-4145-8658-a78e44060665.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59843 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40741 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 48345aba-4e80-4145-8658-a78e44060665, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.280000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-e7ba0deb-9285-4613-a86d-fc1ff401e202.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43539 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46371 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7ba0deb-9285-4613-a86d-fc1ff401e202, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.130000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48345aba-4e80-4145-8658-a78e44060665 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48345aba-4e80-4145-8658-a78e44060665 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 185s km.shutdown_kernel(before['kernel']['id']) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 14.240000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.010000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7ba0deb-9285-4613-a86d-fc1ff401e202 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7ba0deb-9285-4613-a86d-fc1ff401e202 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 185s from subprocess import PIPE, Popen 185s File "/usr/lib/python3.14/subprocess.py", line 49, in 185s import signal 185s File "/usr/lib/python3.14/signal.py", line 19, in 185s _IntEnum._convert_( 185s ~~~~~~~~~~~~~~~~~~^ 185s 'Sigmasks', __name__, 185s ^^^^^^^^^^^^^^^^^^^^^ 185s lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK')) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 185s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 185s File "/usr/lib/python3.14/enum.py", line 1877, in convert_class 185s contained = value2member_map.get(member._value_) 185s KeyboardInterrupt 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 185s import jupyter_client 185s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 185s from .asynchronous import AsyncKernelClient 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 185s from .client import AsyncKernelClient # noqa 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 185s import zmq.asyncio 185s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 185s from zmq import backend 185s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 185s _ns = select_backend(first) 185s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 185s mod = import_module(name) 185s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 185s return _bootstrap._gcd_import(name[level:], package, level) 185s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 185s from . import _zmq 185s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 185s File "", line 1371, in _find_and_load 185s File "", line 1333, in _find_and_load_unlocked 185s File "", line 1267, in _find_spec 185s File "", line 1292, in find_spec 185s File "", line 1266, in _get_spec 185s File "", line 1393, in find_spec 185s File "", line 133, in _path_join 185s KeyboardInterrupt 185s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-df430e66-7f40-4f63-a447-c9ade669a066.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44407 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35801 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: df430e66-7f40-4f63-a447-c9ade669a066, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7ba0deb-9285-4613-a86d-fc1ff401e202 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7ba0deb-9285-4613-a86d-fc1ff401e202 185s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 16.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.610000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df430e66-7f40-4f63-a447-c9ade669a066 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df430e66-7f40-4f63-a447-c9ade669a066 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-64f5c9ad-99e6-4808-998f-bf1b09ccbb3e.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41085 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37023 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.250000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.920000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea (::1) 2.740000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364 (::1) 7.260000ms referer=None 185s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 185s import jupyter_client 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 845, in get_code 185s File "", line 968, in path_stats 185s File "", line 152, in _path_stat 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-dcfbd140-9c08-45de-b47f-baa4dde4fc87.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56875 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40165 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcfbd140-9c08-45de-b47f-baa4dde4fc87, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.790000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-db894ed7-0766-4a28-b38c-c11d2e83d576.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34483 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: db894ed7-0766-4a28-b38c-c11d2e83d576, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.310000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcfbd140-9c08-45de-b47f-baa4dde4fc87 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcfbd140-9c08-45de-b47f-baa4dde4fc87 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 185s yield maybe_future( 185s km.shutdown_kernel(before['kernel']['id']) 185s ) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 17.360000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.750000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db894ed7-0766-4a28-b38c-c11d2e83d576 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db894ed7-0766-4a28-b38c-c11d2e83d576 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 13.010000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "", line 1371, in _find_and_load 185s File "", line 1333, in _find_and_load_unlocked 185s File "", line 1267, in _find_spec 185s File "", line 1292, in find_spec 185s File "", line 1266, in _get_spec 185s File "", line 1384, in find_spec 185s KeyboardInterrupt 185s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-667b534c-62a6-4731-bbcb-741ff18e0223.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57169 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59987 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 667b534c-62a6-4731-bbcb-741ff18e0223, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db894ed7-0766-4a28-b38c-c11d2e83d576 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db894ed7-0766-4a28-b38c-c11d2e83d576 185s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 18.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 667b534c-62a6-4731-bbcb-741ff18e0223 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 667b534c-62a6-4731-bbcb-741ff18e0223 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s =================================== FAILURES =================================== 185s ______________________ KernelAPITest.test_default_kernel _______________________ 185s 185s self = 185s 185s def tearDown(self): 185s for k in self.kern_api.list().json(): 185s > self.kern_api.shutdown(k['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9c4f9287-e06c-4e18-88a6-2d41d2d72c9c 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log setup ------------------------------ 185s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpum9tsx6x/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpum9tsx6x/etc/jupyter'] for config files 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpum9tsx6x/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpum9tsx6x/config 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpum9tsx6x/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpum9tsx6x/config 185s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpum9tsx6x/notebooks 185s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 185s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 185s WARNING NotebookApp:handlers.py:612 Forbidden 185s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.640000ms referer=None 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-9c4f9287-e06c-4e18-88a6-2d41d2d72c9c.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55741 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49143 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9c4f9287-e06c-4e18-88a6-2d41d2d72c9c, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.480000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c4f9287-e06c-4e18-88a6-2d41d2d72c9c 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c4f9287-e06c-4e18-88a6-2d41d2d72c9c 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9c4f9287-e06c-4e18-88a6-2d41d2d72c9c (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9c4f9287-e06c-4e18-88a6-2d41d2d72c9c', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 185s yielded = ctx_run(next, result) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9c4f9287-e06c-4e18-88a6-2d41d2d72c9c (::1) 8.660000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 3, in 185s import contextlib 185s File "/usr/lib/python3.14/contextlib.py", line 6, in 185s from collections import deque 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 888, in get_code 185s File "", line 511, in _compile_bytecode 185s KeyboardInterrupt 185s ______________________ KernelAPITest.test_kernel_handler _______________________ 185s 185s self = 185s 185s def test_kernel_handler(self): 185s # GET kernel with given id 185s kid = self.kern_api.start().json()['id'] 185s r = self.kern_api.get(kid) 185s kern1 = r.json() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(kern1, dict) 185s self.assertIn('id', kern1) 185s self.assertEqual(kern1['id'], kid) 185s 185s # Request a bad kernel id and check that a JSON 185s # message is returned! 185s bad_id = '111-111-111-111-111' 185s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 185s self.kern_api.get(bad_id) 185s 185s # DELETE kernel with id 185s > r = self.kern_api.shutdown(kid) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a7039120-6b66-4065-8010-e6fec0d9345f 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-a7039120-6b66-4065-8010-e6fec0d9345f.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49147 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58403 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: a7039120-6b66-4065-8010-e6fec0d9345f, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.450000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a7039120-6b66-4065-8010-e6fec0d9345f (::1) 1.840000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 185s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 185s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.810000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7039120-6b66-4065-8010-e6fec0d9345f 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7039120-6b66-4065-8010-e6fec0d9345f 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a7039120-6b66-4065-8010-e6fec0d9345f (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a7039120-6b66-4065-8010-e6fec0d9345f', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 185s yielded = ctx_run(next, result) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a7039120-6b66-4065-8010-e6fec0d9345f (::1) 7.850000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c4f9287-e06c-4e18-88a6-2d41d2d72c9c 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c4f9287-e06c-4e18-88a6-2d41d2d72c9c 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9c4f9287-e06c-4e18-88a6-2d41d2d72c9c (::1) 1.200000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7039120-6b66-4065-8010-e6fec0d9345f 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7039120-6b66-4065-8010-e6fec0d9345f 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 6, in 185s import fnmatch 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 861, in get_code 185s KeyboardInterrupt 185s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 185s 185s self = 185s 185s def test_main_kernel_handler(self): 185s # POST request 185s r = self.kern_api.start() 185s kern1 = r.json() 185s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 185s self.assertEqual(r.status_code, 201) 185s self.assertIsInstance(kern1, dict) 185s 185s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 185s expected_csp = '; '.join([ 185s "frame-ancestors 'self'", 185s 'report-uri ' + report_uri, 185s "default-src 'none'" 185s ]) 185s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 185s 185s # GET request 185s r = self.kern_api.list() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(r.json(), list) 185s self.assertEqual(r.json()[0]['id'], kern1['id']) 185s self.assertEqual(r.json()[0]['name'], kern1['name']) 185s 185s # create another kernel and check that they both are added to the 185s # list of kernels from a GET request 185s kern2 = self.kern_api.start().json() 185s assert isinstance(kern2, dict) 185s r = self.kern_api.list() 185s kernels = r.json() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(kernels, list) 185s self.assertEqual(len(kernels), 2) 185s 185s # Interrupt a kernel 185s r = self.kern_api.interrupt(kern2['id']) 185s self.assertEqual(r.status_code, 204) 185s 185s # Restart a kernel 185s > r = self.kern_api.restart(kern2['id']) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 185s return self._req('POST', url_path_join(id, 'restart')) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f/restart 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Could not import runpy._run_module_as_main 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 15, in 185s import importlib.util 185s File "/usr/lib/python3.14/importlib/util.py", line 2, in 185s from ._abc import Loader 185s File "/usr/lib/python3.14/importlib/_abc.py", line 0, in 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-4a9a2322-ae19-45bc-890e-585580c765bd.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60127 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40163 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a9a2322-ae19-45bc-890e-585580c765bd, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.060000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpum9tsx6x/runtime/kernel-b30a10cd-52ce-4cfd-b695-ffc15110a13f.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40997 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48807 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: b30a10cd-52ce-4cfd-b695-ffc15110a13f, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.190000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.150000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b30a10cd-52ce-4cfd-b695-ffc15110a13f 185s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f/interrupt (::1) 3.260000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 185s yield maybe_future(km.restart_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 185s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 185s await ensure_async(kernel.restart_kernel(now=now)) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 185s await self._async_shutdown_kernel(now=now, restart=True) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f/restart (::1) 10.310000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a9a2322-ae19-45bc-890e-585580c765bd 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a9a2322-ae19-45bc-890e-585580c765bd 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 185s yielded = ctx_run(next, result) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ________________________ KernelAPITest.test_no_kernels _________________________ 185s 185s self = 185s 185s def test_no_kernels(self): 185s """Make sure there are no kernels running at the start""" 185s kernels = self.kern_api.list().json() 185s > self.assertEqual(kernels, []) 185s E AssertionError: Lists differ: [{'id': '4a9a2322-ae19-45bc-890e-585580c76[281 chars]: 0}] != [] 185s E 185s E First list contains 2 additional elements. 185s E First extra element 0: 185s E {'id': '4a9a2322-ae19-45bc-890e-585580c765bd', 'name': 'python3', 'last_activity': '2026-01-22T18:18:50.796409Z', 'execution_state': 'starting', 'connections': 0} 185s E 185s E + [] 185s E - [{'connections': 0, 185s E - 'execution_state': 'starting', 185s E - 'id': '4a9a2322-ae19-45bc-890e-585580c765bd', 185s E - 'last_activity': '2026-01-22T18:18:50.796409Z', 185s E - 'name': 'python3'}, 185s E - {'connections': 0, 185s E - 'execution_state': 'starting', 185s E - 'id': 'b30a10cd-52ce-4cfd-b695-ffc15110a13f', 185s E - 'last_activity': '2026-01-22T18:18:50.822285Z', 185s E - 'name': 'python3'}] 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a9a2322-ae19-45bc-890e-585580c765bd 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a9a2322-ae19-45bc-890e-585580c765bd 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4a9a2322-ae19-45bc-890e-585580c765bd (::1) 1.270000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b30a10cd-52ce-4cfd-b695-ffc15110a13f 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b30a10cd-52ce-4cfd-b695-ffc15110a13f 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b30a10cd-52ce-4cfd-b695-ffc15110a13f (::1) 1.400000ms 185s ---------------------------- Captured log teardown ----------------------------- 185s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 185s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 185s _____________________ AsyncKernelAPITest.test_connections ______________________ 185s 185s self = 185s 185s def tearDown(self): 185s for k in self.kern_api.list().json(): 185s > self.kern_api.shutdown(k['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log setup ------------------------------ 185s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpe4_2n9u2/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpe4_2n9u2/etc/jupyter'] for config files 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe4_2n9u2/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe4_2n9u2/config 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe4_2n9u2/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe4_2n9u2/config 185s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpe4_2n9u2/notebooks 185s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 185s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 185s WARNING NotebookApp:handlers.py:612 Forbidden 185s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.680000ms referer=None 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-a6a55097-5389-43b7-9477-2c3a79c6c954.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39489 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35089 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6a55097-5389-43b7-9477-2c3a79c6c954, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.100000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 2.390000ms 185s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954/channels 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 185s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41151 185s 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/'}]} 185s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel a6a55097-5389-43b7-9477-2c3a79c6c954) to 5.4 (client). 185s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954/channels (::1) 639.640000ms 185s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954/channels 185s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35089 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41151 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39489 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49281 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41151 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39489 185s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 185s Setting websocket_ping_timeout=30000 185s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 3.390000ms 185s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:kernelmanager.py:423 activity on a6a55097-5389-43b7-9477-2c3a79c6c954: status (busy) 185s DEBUG NotebookApp:kernelmanager.py:423 activity on a6a55097-5389-43b7-9477-2c3a79c6c954: status (busy) 185s DEBUG NotebookApp:kernelmanager.py:423 activity on a6a55097-5389-43b7-9477-2c3a79c6c954: status (idle) 185s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:kernelmanager.py:423 activity on a6a55097-5389-43b7-9477-2c3a79c6c954: status (idle) 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 0.770000ms 185s DEBUG NotebookApp:handlers.py:579 Websocket closed a6a55097-5389-43b7-9477-2c3a79c6c954:f248408f-0e6f2ec4eae276fab144eb90 185s INFO NotebookApp:kernelmanager.py:222 Starting buffering for a6a55097-5389-43b7-9477-2c3a79c6c954:f248408f-0e6f2ec4eae276fab144eb90 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a6a55097-5389-43b7-9477-2c3a79c6c954:iopub 185s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a6a55097-5389-43b7-9477-2c3a79c6c954:iopub 185s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on a6a55097-5389-43b7-9477-2c3a79c6c954:iopub 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 1.730000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 0.860000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6a55097-5389-43b7-9477-2c3a79c6c954 185s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for a6a55097-5389-43b7-9477-2c3a79c6c954:f248408f-0e6f2ec4eae276fab144eb90 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6a55097-5389-43b7-9477-2c3a79c6c954 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 11.540000ms referer=None 185s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 185s 185s self = 185s 185s def tearDown(self): 185s for k in self.kern_api.list().json(): 185s > self.kern_api.shutdown(k['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-0f9f28bb-9ab6-4942-8129-ddab22f1b4b4.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55735 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35511 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.580000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6a55097-5389-43b7-9477-2c3a79c6c954 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6a55097-5389-43b7-9477-2c3a79c6c954 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a6a55097-5389-43b7-9477-2c3a79c6c954 (::1) 2.650000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0f9f28bb-9ab6-4942-8129-ddab22f1b4b4', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 185s 185s self = 185s 185s def test_kernel_handler(self): 185s # GET kernel with given id 185s kid = self.kern_api.start().json()['id'] 185s r = self.kern_api.get(kid) 185s kern1 = r.json() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(kern1, dict) 185s self.assertIn('id', kern1) 185s self.assertEqual(kern1['id'], kid) 185s 185s # Request a bad kernel id and check that a JSON 185s # message is returned! 185s bad_id = '111-111-111-111-111' 185s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 185s self.kern_api.get(bad_id) 185s 185s # DELETE kernel with id 185s > r = self.kern_api.shutdown(kid) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 3, in 185s import contextlib 185s File "/usr/lib/python3.14/contextlib.py", line 7, in 185s from functools import wraps 185s File "/usr/lib/python3.14/functools.py", line 520, in 185s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 185s File "/usr/lib/python3.14/collections/__init__.py", line 447, in namedtuple 185s __new__ = eval(code, namespace) 185s File "", line 0, in 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-e8c53c13-dd07-4564-9919-31caf5502836.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34167 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37689 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: e8c53c13-dd07-4564-9919-31caf5502836, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.630000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836 (::1) 0.880000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 185s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 185s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.730000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e8c53c13-dd07-4564-9919-31caf5502836 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8c53c13-dd07-4564-9919-31caf5502836 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836 (::1) 16.610000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.370000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 (::1) 3.130000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e8c53c13-dd07-4564-9919-31caf5502836 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8c53c13-dd07-4564-9919-31caf5502836 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e8c53c13-dd07-4564-9919-31caf5502836 (::1) 0.970000ms 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 3, in 185s import contextlib 185s File "/usr/lib/python3.14/contextlib.py", line 7, in 185s from functools import wraps 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 888, in get_code 185s File "", line 511, in _compile_bytecode 185s KeyboardInterrupt 185s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 185s 185s self = 185s 185s def test_main_kernel_handler(self): 185s # POST request 185s r = self.kern_api.start() 185s kern1 = r.json() 185s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 185s self.assertEqual(r.status_code, 201) 185s self.assertIsInstance(kern1, dict) 185s 185s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 185s expected_csp = '; '.join([ 185s "frame-ancestors 'self'", 185s 'report-uri ' + report_uri, 185s "default-src 'none'" 185s ]) 185s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 185s 185s # GET request 185s r = self.kern_api.list() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(r.json(), list) 185s self.assertEqual(r.json()[0]['id'], kern1['id']) 185s self.assertEqual(r.json()[0]['name'], kern1['name']) 185s 185s # create another kernel and check that they both are added to the 185s # list of kernels from a GET request 185s kern2 = self.kern_api.start().json() 185s assert isinstance(kern2, dict) 185s r = self.kern_api.list() 185s kernels = r.json() 185s self.assertEqual(r.status_code, 200) 185s assert isinstance(kernels, list) 185s self.assertEqual(len(kernels), 2) 185s 185s # Interrupt a kernel 185s r = self.kern_api.interrupt(kern2['id']) 185s self.assertEqual(r.status_code, 204) 185s 185s # Restart a kernel 185s > r = self.kern_api.restart(kern2['id']) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 185s return self._req('POST', url_path_join(id, 'restart')) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8/restart 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Could not import runpy._run_module_as_main 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 14, in 185s import importlib.machinery # importlib first so we can test #15386 via -m 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 924, in _load_unlocked 185s File "", line 822, in module_from_spec 185s File "", line 801, in _init_module_attrs 185s File "", line 641, in cached 185s File "", line 369, in _get_cached 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-81d68830-bbd6-447a-8294-e3aa2088cfdc.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56059 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43937 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81d68830-bbd6-447a-8294-e3aa2088cfdc, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.500000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe4_2n9u2/runtime/kernel-0b805b43-36d5-4e1c-afff-1c9a2b17c8b8.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39015 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52501 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.830000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8 185s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8/interrupt (::1) 0.990000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 185s yield maybe_future(km.restart_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 185s result = coro.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 185s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 185s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 185s yield self # This tells Task to wait for completion. 185s ^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 185s await ensure_async(kernel.restart_kernel(now=now)) 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 185s await self._async_shutdown_kernel(now=now, restart=True) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8/restart (::1) 7.040000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 185s yield maybe_future(km.shutdown_kernel(kernel_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 185s 185s self = 185s 185s def test_no_kernels(self): 185s """Make sure there are no kernels running at the start""" 185s kernels = self.kern_api.list().json() 185s > self.assertEqual(kernels, []) 185s E AssertionError: Lists differ: [{'id': '81d68830-bbd6-447a-8294-e3aa2088c[281 chars]: 0}] != [] 185s E 185s E First list contains 2 additional elements. 185s E First extra element 0: 185s E {'id': '81d68830-bbd6-447a-8294-e3aa2088cfdc', 'name': 'python3', 'last_activity': '2026-01-22T18:18:52.044256Z', 'execution_state': 'starting', 'connections': 0} 185s E 185s E + [] 185s E - [{'connections': 0, 185s E - 'execution_state': 'starting', 185s E - 'id': '81d68830-bbd6-447a-8294-e3aa2088cfdc', 185s E - 'last_activity': '2026-01-22T18:18:52.044256Z', 185s E - 'name': 'python3'}, 185s E - {'connections': 0, 185s E - 'execution_state': 'starting', 185s E - 'id': '0b805b43-36d5-4e1c-afff-1c9a2b17c8b8', 185s E - 'last_activity': '2026-01-22T18:18:52.078345Z', 185s E - 'name': 'python3'}] 185s 185s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/81d68830-bbd6-447a-8294-e3aa2088cfdc (::1) 0.950000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b805b43-36d5-4e1c-afff-1c9a2b17c8b8 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0b805b43-36d5-4e1c-afff-1c9a2b17c8b8 (::1) 1.030000ms 185s ---------------------------- Captured log teardown ----------------------------- 185s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81d68830-bbd6-447a-8294-e3aa2088cfdc 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6a55097-5389-43b7-9477-2c3a79c6c954 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8c53c13-dd07-4564-9919-31caf5502836 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f9f28bb-9ab6-4942-8129-ddab22f1b4b4 185s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 185s __________________________ SessionAPITest.test_create __________________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log setup ------------------------------ 185s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpuxpwdwqg/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpuxpwdwqg/etc/jupyter'] for config files 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpuxpwdwqg/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpuxpwdwqg/config 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpuxpwdwqg/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpuxpwdwqg/config 185s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpuxpwdwqg/notebooks 185s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 185s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 185s WARNING NotebookApp:handlers.py:612 Forbidden 185s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.700000ms referer=None 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-9e11c7fd-0958-4a5e-b33d-110a65e6bb33.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46445 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58335 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e11c7fd-0958-4a5e-b33d-110a65e6bb33, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.730000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.040000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8 (::1) 1.030000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e11c7fd-0958-4a5e-b33d-110a65e6bb33 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e11c7fd-0958-4a5e-b33d-110a65e6bb33 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8 (::1) 9.030000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "", line 1371, in _find_and_load 185s File "", line 1329, in _find_and_load_unlocked 185s KeyboardInterrupt 185s __________________ SessionAPITest.test_create_console_session __________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6eadfc59-961c-44ed-bbca-0923b827e1db 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35963 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34695 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.310000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e11c7fd-0958-4a5e-b33d-110a65e6bb33 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e11c7fd-0958-4a5e-b33d-110a65e6bb33 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/89d81389-755b-4720-a943-2c3703918cd8 (::1) 2.030000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6eadfc59-961c-44ed-bbca-0923b827e1db (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6eadfc59-961c-44ed-bbca-0923b827e1db', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 237, in 185s magic_check_bytes = re.compile(b'([*?[])') 185s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 185s return _compile(pattern, flags) 185s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 185s p = _compiler.compile(pattern, flags) 185s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 185s p = _parser.parse(p, flags) 185s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 185s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 185s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 185s itemsappend(_parse(source, state, verbose, nested + 1, 185s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s not nested and not items)) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/re/_parser.py", line 857, in _parse 185s if not source.match(")"): 185s ~~~~~~~~~~~~^^^^^ 185s File "/usr/lib/python3.14/re/_parser.py", line 256, in match 185s def match(self, char): 185s 185s KeyboardInterrupt 185s ____________________ SessionAPITest.test_create_deprecated _____________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ba6d15c0-083d-4d56-bc24-ccc75ed523ab 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-944e3106-5f69-4488-a8d2-8e093f72d371.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33359 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33641 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 944e3106-5f69-4488-a8d2-8e093f72d371, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.500000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cdbcb6d4-0ca4-44e4-a6f4-30e3d2ea3e85 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6eadfc59-961c-44ed-bbca-0923b827e1db (::1) 1.490000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 944e3106-5f69-4488-a8d2-8e093f72d371 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 944e3106-5f69-4488-a8d2-8e093f72d371 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ba6d15c0-083d-4d56-bc24-ccc75e/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 185s gc.collect() 185s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 185s d523ab (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ba6d15c0-083d-4d56-bc24-ccc75ed523ab', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ba6d15c0-083d-4d56-bc24-ccc75ed523ab (::1) 7.860000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 5, in 185s import re 185s File "/usr/lib/python3.14/re/__init__.py", line 126, in 185s from . import _compiler, _parser 185s KeyboardInterrupt 185s ___________________ SessionAPITest.test_create_file_session ____________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-7e5d4cf7-b1ba-48c4-91fa-6afa6c631183.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50837 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34787 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.660000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 944e3106-5f69-4488-a8d2-8e093f72d371 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 944e3106-5f69-4488-a8d2-8e093f72d371 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ba6d15c0-083d-4d56-bc24-ccc75ed523ab (::1) 1.440000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699 (::1) 7.490000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 5, in 185s import re 185s File "/usr/lib/python3.14/re/__init__.py", line 126, in 185s from . import _compiler, _parser 185s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 185s from . import _parser 185s File "/usr/lib/python3.14/re/_parser.py", line 75, in 185s class State: 185s ...<33 lines>... 185s 'lookbehind subpattern') 185s KeyboardInterrupt 185s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 185s 185s self = 185s 185s def test_create_with_kernel_id(self): 185s # create a new kernel 185s r = self.request('POST', 'api/kernels') 185s r.raise_for_status() 185s kernel = r.json() 185s 185s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 185s self.assertEqual(resp.status_code, 201) 185s newsession = resp.json() 185s self.assertIn('id', newsession) 185s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 185s self.assertEqual(newsession['kernel']['id'], kernel['id']) 185s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 185s 185s sessions = self.sess_api.list().json() 185s > self.assertEqual(sessions, [newsession]) 185s E AssertionError: Lists differ: [{'id': '93f06a31-5a09-4864-8abd-ac78aeafa699', 'p[553 chars]ne}}] != [{'id': '32201c37-51bd-4bf8-ae5f-2fdd50d26d5e', 'p[279 chars]ne}}] 185s E 185s E First differing element 0: 185s E {'id': '93f06a31-5a09-4864-8abd-ac78aeafa699', 'p[218 chars]: 0}} 185s E {'id': '32201c37-51bd-4bf8-ae5f-2fdd50d26d5e', 'p[278 chars]one}} 185s E 185s E First list contains 1 additional elements. 185s E First extra element 1: 185s E {'id': '32201c37-51bd-4bf8-ae5f-2fdd50d26d5e', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '27f874f8-186c-4813-bd80-be2bdbcae010', 'name': 'python3', 'last_activity': '2026-01-22T18:19:02.530444Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 185s E 185s E Diff is 830 characters long. Set self.maxDiff to None to see it. 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-27f874f8-186c-4813-bd80-be2bdbcae010.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35231 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40273 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27f874f8-186c-4813-bd80-be2bdbcae010, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.650000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.470000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e5d4cf7-b1ba-48c4-91fa-6afa6c631183 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/93f06a31-5a09-4864-8abd-ac78aeafa699 (::1) 1.310000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27f874f8-186c-4813-bd80-be2bdbcae010 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27f874f8-186c-4813-bd80-be2bdbcae010 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/32201c37-51bd-4bf8-ae5f-2fdd50d26d5e (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/32201c37-51bd-4bf8-ae5f-2fdd50d26d5e', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 185s 185s self = 185s 185s def test_modify_kernel_id(self): 185s before = self.sess_api.create('foo/nb1.ipynb').json() 185s sid = before['id'] 185s 185s # create a new kernel 185s r = self.request('POST', 'api/kernels') 185s r.raise_for_status() 185s kernel = r.json() 185s 185s # Attach our session to the existing kernel 185s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 185s return self._req('PATCH', id, body) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-48345aba-4e80-4145-8658-a78e44060665.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59843 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40741 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 48345aba-4e80-4145-8658-a78e44060665, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.280000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-e7ba0deb-9285-4613-a86d-fc1ff401e202.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43539 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46371 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7ba0deb-9285-4613-a86d-fc1ff401e202, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.130000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48345aba-4e80-4145-8658-a78e44060665 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48345aba-4e80-4145-8658-a78e44060665 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 185s km.shutdown_kernel(before['kernel']['id']) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 14.240000ms referer=None 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.010000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7ba0deb-9285-4613-a86d-fc1ff401e202 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7ba0deb-9285-4613-a86d-fc1ff401e202 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 185s 185s self = 185s 185s def test_modify_kernel_name(self): 185s before = self.sess_api.create('foo/nb1.ipynb').json() 185s sid = before['id'] 185s 185s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 185s self.assertEqual(after['id'], sid) 185s self.assertEqual(after['path'], before['path']) 185s self.assertEqual(after['type'], before['type']) 185s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 185s 185s # check kernel list, to be sure previous kernel was cleaned up 185s r = self.request('GET', 'api/kernels') 185s r.raise_for_status() 185s kernel_list = r.json() 185s after['kernel'].pop('last_activity') 185s [ k.pop('last_activity') for k in kernel_list ] 185s > self.assertEqual(kernel_list, [after['kernel']]) 185s E AssertionError: Lists differ: [{'id': '48345aba-4e80-4145-8658-a78e44060665', 'n[177 chars]: 0}] != [{'id': 'df430e66-7f40-4f63-a447-c9ade669a066', 'n[61 chars]: 0}] 185s E 185s E First differing element 0: 185s E {'id': '48345aba-4e80-4145-8658-a78e44060665', 'n[60 chars]': 0} 185s E {'id': 'df430e66-7f40-4f63-a447-c9ade669a066', 'n[60 chars]': 0} 185s E 185s E First list contains 1 additional elements. 185s E First extra element 1: 185s E {'id': 'df430e66-7f40-4f63-a447-c9ade669a066', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 185s E 185s E [{'connections': 0, 185s E - 'execution_state': 'starting', 185s E - 'id': '48345aba-4e80-4145-8658-a78e44060665', 185s E - 'name': 'python3'}, 185s E - {'connections': 0, 185s E 'execution_state': 'starting', 185s E 'id': 'df430e66-7f40-4f63-a447-c9ade669a066', 185s E 'name': 'python3'}] 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-df430e66-7f40-4f63-a447-c9ade669a066.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44407 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35801 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: df430e66-7f40-4f63-a447-c9ade669a066, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7ba0deb-9285-4613-a86d-fc1ff401e202 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7ba0deb-9285-4613-a86d-fc1ff401e202 185s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 16.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.610000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df430e66-7f40-4f63-a447-c9ade669a066 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df430e66-7f40-4f63-a447-c9ade669a066 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49b1c2f9-5faf-4ad6-a79b-323d7bdcc1b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s __________________ SessionAPITest.test_modify_path_deprecated __________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-41ec0585-c24d-40e8-81e4-44a0c597cf63.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43477 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40975 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 41ec0585-c24d-40e8-81e4-44a0c597cf63, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.020000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 185s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7 (::1) 2.900000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41ec0585-c24d-40e8-81e4-44a0c597cf63 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ec0585-c24d-40e8-81e4-44a0c597cf63 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7 (::1) 7.320000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 5, in 185s import re 185s File "/usr/lib/python3.14/re/__init__.py", line 126, in 185s from . import _compiler, _parser 185s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 185s from . import _parser 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 888, in get_code 185s File "", line 511, in _compile_bytecode 185s KeyboardInterrupt 185s _______________________ SessionAPITest.test_modify_type ________________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/81c7ec51-3652-418c-8f82-c7a29b0bab41 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpuxpwdwqg/runtime/kernel-707ea4a8-d040-4ad0-91b5-80d18e7493f3.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57357 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43783 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 707ea4a8-d040-4ad0-91b5-80d18e7493f3, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpuxpwdwqg/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.930000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/81c7ec51-3652-418c-8f82-c7a29b0bab41 (::1) 3.070000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.740000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 41ec0585-c24d-40e8-81e4-44a0c597cf63 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 41ec0585-c24d-40e8-81e4-44a0c597cf63 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a375a34e-e0cc-4100-99f6-b4f1305968b7 (::1) 2.280000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 707ea4a8-d040-4ad0-91b5-80d18e7493f3 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 707ea4a8-d040-4ad0-91b5-80d18e7493f3 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/81c7ec51-3652-418c-8f82-c7a29b0bab41 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/81c7ec51-3652-418c-8f82-c7a29b0bab41', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 185s yielded = self.gen.send(value) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 185s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 185s stopper = ensure_async(km.shutdown_kernel(now, restart)) 185s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 185s return _runner_map[name].run(inner) 185s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 185s return fut.result(None) 185s ~~~~~~~~~~^^^^^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 185s return self.__get_result() 185s ~~~~~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 185s raise self._exception 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/81c7ec51-3652-418c-8f82-c7a29b0bab41 (::1) 8.970000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 185s import json 185s File "/usr/lib/python3.14/json/__init__.py", line 106, in 185s from .decoder import JSONDecoder, JSONDecodeError 185s File "/usr/lib/python3.14/json/decoder.py", line 5, in 185s from json import scanner 185s File "/usr/lib/python3.14/json/scanner.py", line 5, in 185s from _json import make_scanner as c_make_scanner 185s File "", line 1368, in _find_and_load 185s File "", line 420, in __enter__ 185s File "", line 446, in _get_module_lock 185s File "", line 232, in __init__ 185s KeyboardInterrupt 185s ---------------------------- Captured log teardown ----------------------------- 185s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48345aba-4e80-4145-8658-a78e44060665 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 707ea4a8-d040-4ad0-91b5-80d18e7493f3 185s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 185s _______________________ AsyncSessionAPITest.test_create ________________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/da268b91-eb5d-4c6d-8851-79a24c5fa866 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log setup ------------------------------ 185s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp054q_2vc/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp054q_2vc/etc/jupyter'] for config files 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp054q_2vc/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp054q_2vc/config 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp054q_2vc/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 185s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp054q_2vc/config 185s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp054q_2vc/notebooks 185s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 185s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 185s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 185s WARNING NotebookApp:handlers.py:612 Forbidden 185s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.680000ms referer=None 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-fe8960e3-cf66-4d8b-a13a-3b57f43c640d.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41321 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56067 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe8960e3-cf66-4d8b-a13a-3b57f43c640d, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.670000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/da268b91-eb5d-4c6d-8851-79a24c5fa866 (::1) 2.360000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.450000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe8960e3-cf66-4d8b-a13a-3b57f43c640d 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8960e3-cf66-4d8b-a13a-3b57f43c640d 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/da268b91-eb5d-4c6d-8851-79a24c5fa866 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/da268b91-eb5d-4c6d-8851-79a24c5fa866', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 185s from ._version import ( 185s ...<4 lines>... 185s ) 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 888, in get_code 185s File "", line 511, in _compile_bytecode 185s KeyboardInterrupt 185s _______________ AsyncSessionAPITest.test_create_console_session ________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f21b6275-b3e1-4c9f-90ad-f1183ee805c3 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-2fb5936c-a908-4d4c-9784-cae03f2c04a7.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35039 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43761 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2fb5936c-a908-4d4c-9784-cae03f2c04a7, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.490000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe8960e3-cf66-4d8b-a13a-3b57f43c640d 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8960e3-cf66-4d8b-a13a-3b57f43c640d 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/da268b91-eb5d-4c6d-8851-79a24c5fa866 (::1) 2.440000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2fb5936c-a908-4d4c-9784-cae03f2c04a7 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2fb5936c-a908-4d4c-9784-cae03f2c04a7 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f21b6275-b3e1-4c9f-90ad-f1183ee805c3 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f21b6275-b3e1-4c9f-90ad-f1183ee805c3', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 236, in 185s magic_check = re.compile('([*?[])') 185s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 185s return _compile(pattern, flags) 185s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 185s p = _compiler.compile(pattern, flags) 185s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 185s code = _code(p, flags) 185s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 185s _compile(code, p.data, flags) 185s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 185s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 185s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/re/_compiler.py", line 39, in _compile 185s def _compile(code, pattern, flags): 185s 185s KeyboardInterrupt 185s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fa0d0784-3dff-449f-bc47-28d276d61ff5 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33303 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38067 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.940000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.480000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2fb5936c-a908-4d4c-9784-cae03f2c04a7 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2fb5936c-a908-4d4c-9784-cae03f2c04a7 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f21b6275-b3e1-4c9f-90ad-f1183ee805c3 (::1) 1.110000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa0d0784-3dff-449f-bc47-28d276d61ff5 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa0d0784-3dff-449f-bc47-28d276d61ff5', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fa0d0784-3dff-449f-bc47-28d276d61ff5 (::1) 7.840000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "", line 1249, in _path_importer_cache 185s KeyError: '/usr/lib/python3.14/pathlib' 185s 185s During handling of the above exception, another exception occurred: 185s 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 185s from pathlib._os import ( 185s ...<3 lines>... 185s ) 185s File "", line 1371, in _find_and_load 185s File "", line 1333, in _find_and_load_unlocked 185s File "", line 1267, in _find_spec 185s File "", line 1292, in find_spec 185s File "", line 1264, in _get_spec 185s File "", line 1251, in _path_importer_cache 185s File "", line 1227, in _path_hooks 185s File "", line 78, in __init__ 185s File "", line 145, in _path_stat 185s KeyboardInterrupt 185s _________________ AsyncSessionAPITest.test_create_file_session _________________ 185s 185s @self.addCleanup 185s def cleanup_sessions(): 185s for session in self.sess_api.list().json(): 185s > self.sess_api.delete(session['id']) 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 185s return self._req('DELETE', id) 185s ^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-61cb7b10-30e5-4943-b0f7-4bca846387ea.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43941 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38317 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 61cb7b10-30e5-4943-b0f7-4bca846387ea, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.650000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.460000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fa0d0784-3dff-449f-bc47-28d276d61ff5 (::1) 2.590000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea (::1) 7.640000ms referer=None 185s --------------------------- Captured stderr teardown --------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 185s from pathlib import Path 185s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 185s from glob import _StringGlobber, _no_recurse_symlinks 185s File "/usr/lib/python3.14/glob.py", line 5, in 185s import re 185s File "/usr/lib/python3.14/re/__init__.py", line 381, in 185s import copyreg 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 951, in _load_unlocked 185s File "", line 494, in _verbose_message 185s KeyboardInterrupt 185s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 185s 185s self = 185s 185s def test_create_with_kernel_id(self): 185s # create a new kernel 185s r = self.request('POST', 'api/kernels') 185s r.raise_for_status() 185s kernel = r.json() 185s 185s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 185s self.assertEqual(resp.status_code, 201) 185s newsession = resp.json() 185s self.assertIn('id', newsession) 185s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 185s self.assertEqual(newsession['kernel']['id'], kernel['id']) 185s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 185s 185s sessions = self.sess_api.list().json() 185s > self.assertEqual(sessions, [newsession]) 185s E AssertionError: Lists differ: [{'id': 'a740a112-26a5-4191-b020-e03d85a2faea', 'p[553 chars]ne}}] != [{'id': 'caacc4fc-84dd-4944-a5fb-896f0a448364', 'p[279 chars]ne}}] 185s E 185s E First differing element 0: 185s E {'id': 'a740a112-26a5-4191-b020-e03d85a2faea', 'p[218 chars]: 0}} 185s E {'id': 'caacc4fc-84dd-4944-a5fb-896f0a448364', 'p[278 chars]one}} 185s E 185s E First list contains 1 additional elements. 185s E First extra element 1: 185s E {'id': 'caacc4fc-84dd-4944-a5fb-896f0a448364', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '64f5c9ad-99e6-4808-998f-bf1b09ccbb3e', 'name': 'python3', 'last_activity': '2026-01-22T18:19:03.523571Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 185s E 185s E Diff is 830 characters long. Set self.maxDiff to None to see it. 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 185s ------------------------------ Captured log call ------------------------------- 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 185s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-64f5c9ad-99e6-4808-998f-bf1b09ccbb3e.json'] 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41085 185s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37023 185s INFO NotebookApp:kernelmanager.py:179 Kernel started: 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e, name: python3 185s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.250000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.920000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61cb7b10-30e5-4943-b0f7-4bca846387ea 185s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a740a112-26a5-4191-b020-e03d85a2faea (::1) 2.740000ms 185s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 185s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e 185s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e 185s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364 (::1) 185s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364', version='HTTP/1.1', remote_ip='::1') 185s Traceback (most recent call last): 185s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 185s result = await result 185s ^^^^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 185s future.result() 185s ~~~~~~~~~~~~~^^ 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 185s yield maybe_future(sm.delete_session(session_id)) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 185s yielded = self.gen.throw(exc) 185s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 185s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 185s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 185s value = future.result() 185s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 185s raise self._exception.with_traceback(self._exception_tb) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 185s result = coro.send(None) 185s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 185s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 185s raise km.ready.exception() # type: ignore[misc] 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 185s await kernel_awaitable 185s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 185s result = await obj 185s ^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 185s raise e 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 185s out = await method(self, *args, **kwargs) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 185s await self._async_finish_shutdown(restart=restart) 185s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 185s await asyncio.wait_for( 185s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 185s ) 185s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 185s async with timeouts.timeout(timeout): 185s ~~~~~~~~~~~~~~~~^^^^^^^^^ 185s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 185s raise RuntimeError("Timeout should be used inside a task") 185s RuntimeError: Timeout should be used inside a task 185s WARNING NotebookApp:handlers.py:612 Unhandled error 185s ERROR NotebookApp:log.py:55 { 185s "Host": "localhost:12341", 185s "Accept": "*/*", 185s "User-Agent": "python-requests/2.32.5" 185s } 185s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/caacc4fc-84dd-4944-a5fb-896f0a448364 (::1) 7.260000ms referer=None 185s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 185s 185s self = 185s 185s def test_modify_kernel_id(self): 185s before = self.sess_api.create('foo/nb1.ipynb').json() 185s sid = before['id'] 185s 185s # create a new kernel 185s r = self.request('POST', 'api/kernels') 185s r.raise_for_status() 185s kernel = r.json() 185s 185s # Attach our session to the existing kernel 185s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 185s return self._req('PATCH', id, body) 185s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 185s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 185s response.raise_for_status() 185s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 185s 185s self = 185s 185s def raise_for_status(self): 185s """Raises :class:`HTTPError`, if one occurred.""" 185s 185s http_error_msg = "" 185s if isinstance(self.reason, bytes): 185s # We attempt to decode utf-8 first because some servers 185s # choose to localize their reason strings. If the string 185s # isn't utf-8, we fall back to iso-8859-1 for all other 185s # encodings. (See PR #3538) 185s try: 185s reason = self.reason.decode("utf-8") 185s except UnicodeDecodeError: 185s reason = self.reason.decode("iso-8859-1") 185s else: 185s reason = self.reason 185s 185s if 400 <= self.status_code < 500: 185s http_error_msg = ( 185s f"{self.status_code} Client Error: {reason} for url: {self.url}" 185s ) 185s 185s elif 500 <= self.status_code < 600: 185s http_error_msg = ( 185s f"{self.status_code} Server Error: {reason} for url: {self.url}" 185s ) 185s 185s if http_error_msg: 185s > raise HTTPError(http_error_msg, response=self) 185s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e 185s 185s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 185s ----------------------------- Captured stderr call ----------------------------- 185s Traceback (most recent call last): 185s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 185s return _run_code(code, main_globals, None, 185s "__main__", mod_spec) 185s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 185s exec(code, run_globals) 185s ~~~~^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 185s from ipykernel import kernelapp as app 185s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 185s from .connect import * # noqa: F403 185s ^^^^^^^^^^^^^^^^^^^^^^ 185s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 185s import jupyter_client 185s File "", line 1371, in _find_and_load 185s File "", line 1342, in _find_and_load_unlocked 185s File "", line 938, in _load_unlocked 185s File "", line 755, in exec_module 185s File "", line 845, in get_code 185s File "", line 968, in path_stats 185s File "", line 152, in _path_stat 185s KeyboardInterrupt 185s ------------------------------ Captured log call ------------------------------- 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 186s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-dcfbd140-9c08-45de-b47f-baa4dde4fc87.json'] 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56875 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40165 186s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcfbd140-9c08-45de-b47f-baa4dde4fc87, name: python3 186s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 186s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.790000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 186s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-db894ed7-0766-4a28-b38c-c11d2e83d576.json'] 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34483 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 186s INFO NotebookApp:kernelmanager.py:179 Kernel started: db894ed7-0766-4a28-b38c-c11d2e83d576, name: python3 186s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 186s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.310000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcfbd140-9c08-45de-b47f-baa4dde4fc87 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcfbd140-9c08-45de-b47f-baa4dde4fc87 186s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 186s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 186s result = await result 186s ^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 186s future.result() 186s ~~~~~~~~~~~~~^^ 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 186s yield maybe_future( 186s km.shutdown_kernel(before['kernel']['id']) 186s ) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 186s raise self._exception.with_traceback(self._exception_tb) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 186s result = coro.send(None) 186s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 186s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 186s raise km.ready.exception() # type: ignore[misc] 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s WARNING NotebookApp:handlers.py:612 Unhandled error 186s ERROR NotebookApp:log.py:55 { 186s "Host": "localhost:12341", 186s "Accept": "*/*", 186s "User-Agent": "python-requests/2.32.5" 186s } 186s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 17.360000ms referer=None 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.750000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db894ed7-0766-4a28-b38c-c11d2e83d576 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db894ed7-0766-4a28-b38c-c11d2e83d576 186s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 186s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 186s result = await result 186s ^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 186s future.result() 186s ~~~~~~~~~~~~~^^ 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 186s yield maybe_future(sm.delete_session(session_id)) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 186s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 186s raise self._exception.with_traceback(self._exception_tb) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 186s result = coro.send(None) 186s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 186s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 186s raise km.ready.exception() # type: ignore[misc] 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s WARNING NotebookApp:handlers.py:612 Unhandled error 186s ERROR NotebookApp:log.py:55 { 186s "Host": "localhost:12341", 186s "Accept": "*/*", 186s "User-Agent": "python-requests/2.32.5" 186s } 186s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 13.010000ms referer=None 186s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 186s 186s self = 186s 186s def test_modify_kernel_name(self): 186s before = self.sess_api.create('foo/nb1.ipynb').json() 186s sid = before['id'] 186s 186s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 186s self.assertEqual(after['id'], sid) 186s self.assertEqual(after['path'], before['path']) 186s self.assertEqual(after['type'], before['type']) 186s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 186s 186s # check kernel list, to be sure previous kernel was cleaned up 186s r = self.request('GET', 'api/kernels') 186s r.raise_for_status() 186s kernel_list = r.json() 186s after['kernel'].pop('last_activity') 186s [ k.pop('last_activity') for k in kernel_list ] 186s > self.assertEqual(kernel_list, [after['kernel']]) 186s E AssertionError: Lists differ: [{'id': 'dcfbd140-9c08-45de-b47f-baa4dde4fc87', 'n[177 chars]: 0}] != [{'id': '667b534c-62a6-4731-bbcb-741ff18e0223', 'n[61 chars]: 0}] 186s E 186s E First differing element 0: 186s E {'id': 'dcfbd140-9c08-45de-b47f-baa4dde4fc87', 'n[60 chars]': 0} 186s E {'id': '667b534c-62a6-4731-bbcb-741ff18e0223', 'n[60 chars]': 0} 186s E 186s E First list contains 1 additional elements. 186s E First extra element 1: 186s E {'id': '667b534c-62a6-4731-bbcb-741ff18e0223', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 186s E 186s E [{'connections': 0, 186s E - 'execution_state': 'starting', 186s E - 'id': 'dcfbd140-9c08-45de-b47f-baa4dde4fc87', 186s E - 'name': 'python3'}, 186s E - {'connections': 0, 186s E 'execution_state': 'starting', 186s E 'id': '667b534c-62a6-4731-bbcb-741ff18e0223', 186s E 'name': 'python3'}] 186s 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 186s ------------------------------ Captured log call ------------------------------- 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.940000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 186s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-667b534c-62a6-4731-bbcb-741ff18e0223.json'] 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57169 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59987 186s INFO NotebookApp:kernelmanager.py:179 Kernel started: 667b534c-62a6-4731-bbcb-741ff18e0223, name: python3 186s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db894ed7-0766-4a28-b38c-c11d2e83d576 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db894ed7-0766-4a28-b38c-c11d2e83d576 186s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 18.940000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 667b534c-62a6-4731-bbcb-741ff18e0223 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 667b534c-62a6-4731-bbcb-741ff18e0223 186s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e (::1) 186s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d896d862-725a-4775-8e72-1c2ecb5ffc2e', version='HTTP/1.1', remote_ip='::1') 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 186s result = await result 186s ^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 186s future.result() 186s ~~~~~~~~~~~~~^^ 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 186s yield maybe_future(sm.delete_session(session_id)) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 186s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 186s raise self._exception.with_traceback(self._exception_tb) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 186s result = coro.send(None) 186s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 186s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 186s raise km.ready.exception() # type: ignore[misc] 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s WARNING NotebookApp:handlers.py:612 Unhandled error 186s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 186s 186s @self.addCleanup 186s def cleanup_sessions(): 186s for session in self.sess_api.list().json(): 186s > self.sess_api.delete(session['id']) 186s 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 186s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 186s return self._req('DELETE', id) 186s ^^^^^^^^^^^^^^^^^^^^^^^ 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 186s response.raise_for_status() 186s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 186s 186s self = 186s 186s def raise_for_status(self): 186s """Raises :class:`HTTPError`, if one occurred.""" 186s 186s http_error_msg = "" 186s if isinstance(self.reason, bytes): 186s # We attempt to decode utf-8 first because some servers 186s # choose to localize their reason strings. If the string 186s # isn't utf-8, we fall back to iso-8859-1 for all other 186s # encodings. (See PR #3538) 186s try: 186s reason = self.reason.decode("utf-8") 186s except UnicodeDecodeError: 186s reason = self.reason.decode("iso-8859-1") 186s else: 186s reason = self.reason 186s 186s if 400 <= self.status_code < 500: 186s http_error_msg = ( 186s f"{self.status_code} Client Error: {reason} for url: {self.url}" 186s ) 186s 186s elif 500 <= self.status_code < 600: 186s http_error_msg = ( 186s f"{self.status_code} Server Error: {reason} for url: {self.url}" 186s ) 186s 186s if http_error_msg: 186s > raise HTTPError(http_error_msg, response=self) 186s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e21d6a77-641d-468c-b3e5-915453a1ec9e 186s 186s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 186s ------------------------------ Captured log call ------------------------------- 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 186s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-846c8896-a15b-4c2f-951c-8a1501723135.json'] 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40105 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52647 186s INFO NotebookApp:kernelmanager.py:179 Kernel started: 846c8896-a15b-4c2f-951c-8a1501723135, name: python3 186s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 186s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.760000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 186s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e21d6a77-641d-468c-b3e5-915453a1ec9e (::1) 2.840000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 846c8896-a15b-4c2f-951c-8a1501723135 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 846c8896-a15b-4c2f-951c-8a1501723135 186s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e21d6a77-641d-468c-b3e5-915453a1ec9e (::1) 186s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e21d6a77-641d-468c-b3e5-915453a1ec9e', version='HTTP/1.1', remote_ip='::1') 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 186s result = await result 186s ^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 186s future.result() 186s ~~~~~~~~~~~~~^^ 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 186s yield maybe_future(sm.delete_session(session_id)) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 186s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 186s raise self._exception.with_traceback(self._exception_tb) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 186s result = coro.send(None) 186s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 186s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 186s raise km.ready.exception() # type: ignore[misc] 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s WARNING NotebookApp:handlers.py:612 Unhandled error 186s --------------------------- Captured stderr teardown --------------------------- 186s Traceback (most recent call last): 186s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 186s return _run_code(code, main_globals, None, 186s "__main__", mod_spec) 186s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 186s exec(code, run_globals) 186s ~~~~^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 186s from pathlib import Path 186s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 186s from glob import _StringGlobber, _no_recurse_symlinks 186s File "/usr/lib/python3.14/glob.py", line 5, in 186s import re 186s File "/usr/lib/python3.14/re/__init__.py", line 126, in 186s from . import _compiler, _parser 186s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 186s from . import _parser 186s File "", line 1371, in _find_and_load 186s File "", line 1342, in _find_and_load_unlocked 186s File "", line 938, in _load_unlocked 186s File "", line 755, in exec_module 186s File "", line 888, in get_code 186s File "", line 511, in _compile_bytecode 186s KeyboardInterrupt 186s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 186s 186s @self.addCleanup 186s def cleanup_sessions(): 186s for session in self.sess_api.list().json(): 186s > self.sess_api.delete(session['id']) 186s 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 186s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 186s return self._req('DELETE', id) 186s ^^^^^^^^^^^^^^^^^^^^^^^ 186s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 186s response.raise_for_status() 186s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 186s 186s self = 186s 186s def raise_for_status(self): 186s """Raises :class:`HTTPError`, if one occurred.""" 186s 186s http_error_msg = "" 186s if isinstance(self.reason, bytes): 186s # We attempt to decode utf-8 first because some servers 186s # choose to localize their reason strings. If the string 186s # isn't utf-8, we fall back to iso-8859-1 for all other 186s # encodings. (See PR #3538) 186s try: 186s reason = self.reason.decode("utf-8") 186s except UnicodeDecodeError: 186s reason = self.reason.decode("iso-8859-1") 186s else: 186s reason = self.reason 186s 186s if 400 <= self.status_code < 500: 186s http_error_msg = ( 186s f"{self.status_code} Client Error: {reason} for url: {self.url}" 186s ) 186s 186s elif 500 <= self.status_code < 600: 186s http_error_msg = ( 186s f"{self.status_code} Server Error: {reason} for url: {self.url}" 186s ) 186s 186s if http_error_msg: 186s > raise HTTPError(http_error_msg, response=self) 186s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/73208570-14eb-4708-ab4f-f55e0170fda8 186s 186s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 186s ------------------------------ Captured log call ------------------------------- 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 186s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp054q_2vc/runtime/kernel-14ec78e6-26ba-41a9-a898-8abca455f4e0.json'] 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38337 186s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34545 186s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14ec78e6-26ba-41a9-a898-8abca455f4e0, name: python3 186s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp054q_2vc/notebooks/foo'} 186s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.990000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/73208570-14eb-4708-ab4f-f55e0170fda8 (::1) 2.770000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 846c8896-a15b-4c2f-951c-8a1501723135 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 846c8896-a15b-4c2f-951c-8a1501723135 186s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e21d6a77-641d-468c-b3e5-915453a1ec9e (::1) 1.660000ms 186s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 186s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14ec78e6-26ba-41a9-a898-8abca455f4e0 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14ec78e6-26ba-41a9-a898-8abca455f4e0 186s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/73208570-14eb-4708-ab4f-f55e0170fda8 (::1) 186s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/73208570-14eb-4708-ab4f-f55e0170fda8', version='HTTP/1.1', remote_ip='::1') 186s Traceback (most recent call last): 186s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 186s result = await result 186s ^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 186s future.result() 186s ~~~~~~~~~~~~~^^ 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 186s yield maybe_future(sm.delete_session(session_id)) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 186s yielded = self.gen.throw(exc) 186s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 186s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 186s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 186s value = future.result() 186s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 186s raise self._exception.with_traceback(self._exception_tb) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 186s result = coro.send(None) 186s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 186s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 186s raise km.ready.exception() # type: ignore[misc] 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 186s await kernel_awaitable 186s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 186s result = await obj 186s ^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 186s raise e 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 186s out = await method(self, *args, **kwargs) 186s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 186s await self._async_finish_shutdown(restart=restart) 186s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 186s await asyncio.wait_for( 186s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 186s ) 186s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 186s async with timeouts.timeout(timeout): 186s ~~~~~~~~~~~~~~~~^^^^^^^^^ 186s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 186s raise RuntimeError("Timeout should be used inside a task") 186s RuntimeError: Timeout should be used inside a task 186s WARNING NotebookApp:handlers.py:612 Unhandled error 186s ERROR NotebookApp:log.py:55 { 186s "Host": "localhost:12341", 186s "Accept": "*/*", 186s "User-Agent": "python-requests/2.32.5" 186s } 186s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/73208570-14eb-4708-ab4f-f55e0170fda8 (::1) 7.350000ms referer=None 186s --------------------------- Captured stderr teardown --------------------------- 186s Traceback (most recent call last): 186s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 186s return _run_code(code, main_globals, None, 186s "__main__", mod_spec) 186s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 186s exec(code, run_globals) 186s ~~~~^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 186s from ipykernel import kernelapp as app 186s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 186s from .connect import * # noqa: F403 186s ^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 186s import json 186s File "/usr/lib/python3.14/json/__init__.py", line 106, in 186s from .decoder import JSONDecoder, JSONDecodeError 186s File "/usr/lib/python3.14/json/decoder.py", line 54, in 186s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 186s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 186s return _compile(pattern, flags) 186s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 186s p = _compiler.compile(pattern, flags) 186s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 186s code = _code(p, flags) 186s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 186s _compile(code, p.data, flags) 186s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 186s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 186s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/re/_compiler.py", line 88, in _compile 186s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 186s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186s File "/usr/lib/python3.14/re/_compiler.py", line 353, in _optimize_charset 186s data = _mk_bitmap(charmap) 186s File "/usr/lib/python3.14/re/_compiler.py", line 402, in _mk_bitmap 186s return [_int(s[i - _CODEBITS: i], 2) 186s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 186s KeyboardInterrupt 186s ---------------------------- Captured log teardown ----------------------------- 186s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 667b534c-62a6-4731-bbcb-741ff18e0223 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b2f5d0d-7eac-4998-943c-a5ce2cfd0d9f 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 846c8896-a15b-4c2f-951c-8a1501723135 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8960e3-cf66-4d8b-a13a-3b57f43c640d 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14ec78e6-26ba-41a9-a898-8abca455f4e0 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 64f5c9ad-99e6-4808-998f-bf1b09ccbb3e 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db894ed7-0766-4a28-b38c-c11d2e83d576 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2fb5936c-a908-4d4c-9784-cae03f2c04a7 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcfbd140-9c08-45de-b47f-baa4dde4fc87 186s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61cb7b10-30e5-4943-b0f7-4bca846387ea 186s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 186s =============================== warnings summary =============================== 186s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 186s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 186s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 186s return LooseVersion(v) >= LooseVersion(check) 186s 186s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 186s auth/tests/test_login.py: 2 warnings 186s bundler/tests/test_bundler_api.py: 2 warnings 186s services/api/tests/test_api.py: 4 warnings 186s services/config/tests/test_config_api.py: 7 warnings 186s services/contents/tests/test_contents_api.py: 318 warnings 186s services/kernels/tests/test_kernels_api.py: 110 warnings 186s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 186s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 186s services/sessions/tests/test_sessionmanager.py: 9 warnings 186s services/sessions/tests/test_sessions_api.py: 128 warnings 186s terminal/tests/test_terminals_api.py: 50 warnings 186s tests/test_files.py: 2 warnings 186s tests/test_gateway.py: 21 warnings 186s tests/test_notebookapp.py: 8 warnings 186s tests/test_paths.py: 2 warnings 186s tree/tests/test_tree_handler.py: 2 warnings 186s /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). 186s dt = unaware(*args, **kwargs) 186s 186s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 186s /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 186s pytestmark = pytest.mark.integration_tests 186s 186s auth/tests/test_login.py: 3 warnings 186s bundler/tests/test_bundler_api.py: 3 warnings 186s services/api/tests/test_api.py: 3 warnings 186s services/config/tests/test_config_api.py: 3 warnings 186s services/contents/tests/test_contents_api.py: 6 warnings 186s services/kernels/tests/test_kernels_api.py: 12 warnings 186s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 186s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 186s services/sessions/tests/test_sessions_api.py: 6 warnings 186s terminal/tests/test_terminals_api.py: 6 warnings 186s tests/test_files.py: 3 warnings 186s tests/test_gateway.py: 3 warnings 186s tests/test_notebookapp.py: 11 warnings 186s tests/test_paths.py: 3 warnings 186s tree/tests/test_tree_handler.py: 3 warnings 186s /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 186s policy = events.get_event_loop_policy() 186s 186s auth/tests/test_login.py: 9 warnings 186s bundler/tests/test_bundler_api.py: 9 warnings 186s services/api/tests/test_api.py: 9 warnings 186s services/config/tests/test_config_api.py: 9 warnings 186s services/contents/tests/test_contents_api.py: 18 warnings 186s services/kernels/tests/test_kernels_api.py: 47 warnings 186s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 186s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 186s services/sessions/tests/test_sessionmanager.py: 18 warnings 186s services/sessions/tests/test_sessions_api.py: 19 warnings 186s terminal/tests/test_terminals_api.py: 18 warnings 186s tests/test_files.py: 9 warnings 186s tests/test_gateway.py: 9 warnings 186s tests/test_notebookapp.py: 28 warnings 186s tests/test_paths.py: 9 warnings 186s tree/tests/test_tree_handler.py: 9 warnings 186s /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 186s loop = events.get_event_loop_policy().get_event_loop() 186s 186s bundler/tests/test_bundler_api.py: 6 warnings 186s services/api/tests/test_api.py: 6 warnings 186s services/contents/tests/test_contents_api.py: 806 warnings 186s services/contents/tests/test_largefilemanager.py: 42 warnings 186s services/contents/tests/test_manager.py: 526 warnings 186s tests/test_files.py: 8 warnings 186s tree/tests/test_tree_handler.py: 6 warnings 186s /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). 186s dt = unaware(*args, **kwargs) 186s 186s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 186s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 186s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 186s loop.make_current() 186s 186s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 186s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 186s /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/tmpt4mkjp98/data/kernels/sample 2 186s d = self.find_kernel_specs() 186s 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 186s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 186s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=7023) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 186s pid, fd = os.forkpty() 186s 186s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 186s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 186s for name, arg in zip(self.fields, fields): 186s Enable tracemalloc to get traceback where the object was allocated. 186s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 186s 186s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 186s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 186s /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). 186s dt = datetime.utcnow().isoformat() + 'Z' 186s 186s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 186s =========================== short test summary info ============================ 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 186s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 186s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 186s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 186s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 186s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 186s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 186s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 186s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 186s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 186s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 186s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 186s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 186s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 186s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 186s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 186s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 186s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 186s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 186s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 186s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 186s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 186s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2403 warnings, 8 errors in 30.38s = 186s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 186s *** 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 190s ============================= test session starts ============================== 190s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 190s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 190s plugins: typeguard-4.4.4 190s collected 330 items / 303 deselected / 27 selected 190s run-last-failure: rerun previous 27 failures 190s 191s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 193s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 193s 193s ==================================== ERRORS ==================================== 193s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 193s 193s self = 193s 193s def tearDown(self): 193s for k in self.kern_api.list().json(): 193s > self.kern_api.shutdown(k['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-90c08ac6-7ec9-4606-880c-b431f68ec226.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46033 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47581 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 90c08ac6-7ec9-4606-880c-b431f68ec226, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.340000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-1866b7db-c99b-4a90-a659-baf8cb939f6d.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56463 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60157 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1866b7db-c99b-4a90-a659-baf8cb939f6d, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.790000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1866b7db-c99b-4a90-a659-baf8cb939f6d 193s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1866b7db-c99b-4a90-a659-baf8cb939f6d/interrupt (::1) 3.030000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 193s yield maybe_future(km.restart_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 193s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 193s await ensure_async(kernel.restart_kernel(now=now)) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 193s await self._async_shutdown_kernel(now=now, restart=True) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1866b7db-c99b-4a90-a659-baf8cb939f6d/restart (::1) 9.350000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90c08ac6-7ec9-4606-880c-b431f68ec226 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90c08ac6-7ec9-4606-880c-b431f68ec226 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 193s yielded = ctx_run(next, result) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 (::1) 6.610000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 193s from ipykernel import kernelapp as app 193s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 193s from .connect import * # noqa: F403 193s ^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 193s import jupyter_client 193s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 193s from .asynchronous import AsyncKernelClient 193s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 193s from .client import AsyncKernelClient # noqa 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 193s import zmq.asyncio 193s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 193s import asyncio 193s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 193s from .base_events import * 193s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 193s import concurrent.futures 193s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 193s from concurrent.futures._base import (FIRST_COMPLETED, 193s ...<9 lines>... 193s as_completed) 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 193s import logging 193s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 193s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 193s File "/usr/lib/python3.14/traceback.py", line 12, in 193s import _colorize 193s File "/usr/lib/python3.14/_colorize.py", line 5, in 193s from dataclasses import dataclass, field, Field 193s File "/usr/lib/python3.14/dataclasses.py", line 279, in 193s class Field: 193s ...<63 lines>... 193s __class_getitem__ = classmethod(types.GenericAlias) 193s KeyboardInterrupt 193s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 193s 193s self = 193s 193s def tearDown(self): 193s for k in self.kern_api.list().json(): 193s > self.kern_api.shutdown(k['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 193s from pathlib._os import ( 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 851, in get_code 193s File "", line 950, in get_data 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-6de2c69f-3fa9-4bf1-8738-96af0c61fefa.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58989 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44023 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.360000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.820000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-da0bfdf1-2c19-4773-9611-5f4bf17041ae.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39511 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60249 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: da0bfdf1-2c19-4773-9611-5f4bf17041ae, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.610000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 5.280000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: da0bfdf1-2c19-4773-9611-5f4bf17041ae 193s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/da0bfdf1-2c19-4773-9611-5f4bf17041ae/interrupt (::1) 5.120000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 193s yield maybe_future(km.restart_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 193s result = coro.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 193s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 193s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 193s yield self # This tells Task to wait for completion. 193s ^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 193s await ensure_async(kernel.restart_kernel(now=now)) 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 193s await self._async_shutdown_kernel(now=now, restart=True) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/da0bfdf1-2c19-4773-9611-5f4bf17041ae/restart (::1) 8.490000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa (::1) 6.300000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 193s from ipykernel import kernelapp as app 193s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 193s from .connect import * # noqa: F403 193s ^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 193s from typing import TYPE_CHECKING, Any 193s File "/usr/lib/python3.14/typing.py", line 2869, in 193s class SupportsFloat(Protocol): 193s ...<6 lines>... 193s pass 193s File "/usr/lib/python3.14/typing.py", line 1994, in __new__ 193s return super().__new__(mcls, name, bases, namespace, **kwargs) 193s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 193s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 193s File "/usr/lib/python3.14/typing.py", line 2128, in __init_subclass__ 193s def __init_subclass__(cls, *args, **kwargs): 193s 193s KeyboardInterrupt 193s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-42167dc2-f310-4161-a912-f276cb96c2d1.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40025 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59537 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42167dc2-f310-4161-a912-f276cb96c2d1, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.170000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf (::1) 1.590000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42167dc2-f310-4161-a912-f276cb96c2d1 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42167dc2-f310-4161-a912-f276cb96c2d1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 9.910000ms referer=None 193s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ---------------------------- Captured stderr setup ----------------------------- 193s Traceback (most recent call last): 193s ----------------------------- Captured stderr call ----------------------------- 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-1c2fb5ed-8508-4f73-99b6-a77181f5fc7c.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46299 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40257 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.600000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.370000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df749c87-8b1f-4e31-b53f-579285b7bd06 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df749c87-8b1f-4e31-b53f-579285b7bd06 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93 (::1) 0.970000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 6.700000ms referer=None 193s =================================== FAILURES =================================== 193s ______________________ KernelAPITest.test_default_kernel _______________________ 193s 193s self = 193s 193s def tearDown(self): 193s for k in self.kern_api.list().json(): 193s > self.kern_api.shutdown(k['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cd48ce0d-da38-4926-9560-4f69e6f4d243 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log setup ------------------------------ 193s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpssoapa2u/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpssoapa2u/etc/jupyter'] for config files 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpssoapa2u/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpssoapa2u/config 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpssoapa2u/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpssoapa2u/config 193s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpssoapa2u/notebooks 193s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 193s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 193s WARNING NotebookApp:handlers.py:612 Forbidden 193s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.980000ms referer=None 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-cd48ce0d-da38-4926-9560-4f69e6f4d243.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42865 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56603 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: cd48ce0d-da38-4926-9560-4f69e6f4d243, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 51.900000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd48ce0d-da38-4926-9560-4f69e6f4d243 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd48ce0d-da38-4926-9560-4f69e6f4d243 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cd48ce0d-da38-4926-9560-4f69e6f4d243 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cd48ce0d-da38-4926-9560-4f69e6f4d243', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 193s yielded = ctx_run(next, result) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 3, in 193s import contextlib 193s File "/usr/lib/python3.14/contextlib.py", line 6, in 193s from collections import deque 193s File "/usr/lib/python3.14/collections/__init__.py", line 1360, in 193s class UserString(_collections_abc.Sequence): 193s ...<248 lines>... 193s return self.__class__(self.data.zfill(width)) 193s File "/usr/lib/python3.14/abc.py", line 105, in __new__ 193s def __new__(mcls, name, bases, namespace, /, **kwargs): 193s 193s KeyboardInterrupt 193s ______________________ KernelAPITest.test_kernel_handler _______________________ 193s 193s self = 193s 193s def test_kernel_handler(self): 193s # GET kernel with given id 193s kid = self.kern_api.start().json()['id'] 193s r = self.kern_api.get(kid) 193s kern1 = r.json() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(kern1, dict) 193s self.assertIn('id', kern1) 193s self.assertEqual(kern1['id'], kid) 193s 193s # Request a bad kernel id and check that a JSON 193s # message is returned! 193s bad_id = '111-111-111-111-111' 193s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 193s self.kern_api.get(bad_id) 193s 193s # DELETE kernel with id 193s > r = self.kern_api.shutdown(kid) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7e77385d-ea8e-48e2-ba00-b6a17c604fa2 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-7e77385d-ea8e-48e2-ba00-b6a17c604fa2.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50225 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42419 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7e77385d-ea8e-48e2-ba00-b6a17c604fa2, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.700000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/7e77385d-ea8e-48e2-ba00-b6a17c604fa2 (::1) 2.270000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 193s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 193s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.820000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e77385d-ea8e-48e2-ba00-b6a17c604fa2 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e77385d-ea8e-48e2-ba00-b6a17c604fa2 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7e77385d-ea8e-48e2-ba00-b6a17c604fa2 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7e77385d-ea8e-48e2-ba00-b6a17c604fa2', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 193s yielded = ctx_run(next, result) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7e77385d-ea8e-48e2-ba00-b6a17c604fa2 (::1) 8.280000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd48ce0d-da38-4926-9560-4f69e6f4d243 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd48ce0d-da38-4926-9560-4f69e6f4d243 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cd48ce0d-da38-4926-9560-4f69e6f4d243 (::1) 2.670000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e77385d-ea8e-48e2-ba00-b6a17c604fa2 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e77385d-ea8e-48e2-ba00-b6a17c604fa2 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "/usr/lib/python3.14/re/__init__.py", line 126, in 193s from . import _compiler, _parser 193s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 193s from . import _parser 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 193s 193s self = 193s 193s def test_main_kernel_handler(self): 193s # POST request 193s r = self.kern_api.start() 193s kern1 = r.json() 193s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 193s self.assertEqual(r.status_code, 201) 193s self.assertIsInstance(kern1, dict) 193s 193s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 193s expected_csp = '; '.join([ 193s "frame-ancestors 'self'", 193s 'report-uri ' + report_uri, 193s "default-src 'none'" 193s ]) 193s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 193s 193s # GET request 193s r = self.kern_api.list() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(r.json(), list) 193s self.assertEqual(r.json()[0]['id'], kern1['id']) 193s self.assertEqual(r.json()[0]['name'], kern1['name']) 193s 193s # create another kernel and check that they both are added to the 193s # list of kernels from a GET request 193s kern2 = self.kern_api.start().json() 193s assert isinstance(kern2, dict) 193s r = self.kern_api.list() 193s kernels = r.json() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(kernels, list) 193s self.assertEqual(len(kernels), 2) 193s 193s # Interrupt a kernel 193s r = self.kern_api.interrupt(kern2['id']) 193s self.assertEqual(r.status_code, 204) 193s 193s # Restart a kernel 193s > r = self.kern_api.restart(kern2['id']) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 193s return self._req('POST', url_path_join(id, 'restart')) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1866b7db-c99b-4a90-a659-baf8cb939f6d/restart 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-90c08ac6-7ec9-4606-880c-b431f68ec226.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46033 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47581 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 90c08ac6-7ec9-4606-880c-b431f68ec226, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.340000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpssoapa2u/runtime/kernel-1866b7db-c99b-4a90-a659-baf8cb939f6d.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56463 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60157 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1866b7db-c99b-4a90-a659-baf8cb939f6d, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.790000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1866b7db-c99b-4a90-a659-baf8cb939f6d 193s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1866b7db-c99b-4a90-a659-baf8cb939f6d/interrupt (::1) 3.030000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 193s yield maybe_future(km.restart_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 193s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 193s await ensure_async(kernel.restart_kernel(now=now)) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 193s await self._async_shutdown_kernel(now=now, restart=True) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1866b7db-c99b-4a90-a659-baf8cb939f6d/restart (::1) 9.350000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90c08ac6-7ec9-4606-880c-b431f68ec226 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90c08ac6-7ec9-4606-880c-b431f68ec226 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 193s yielded = ctx_run(next, result) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 (::1) 6.610000ms referer=None 193s ________________________ KernelAPITest.test_no_kernels _________________________ 193s 193s self = 193s 193s def test_no_kernels(self): 193s """Make sure there are no kernels running at the start""" 193s kernels = self.kern_api.list().json() 193s > self.assertEqual(kernels, []) 193s E AssertionError: Lists differ: [{'id': '90c08ac6-7ec9-4606-880c-b431f68ec[281 chars]: 0}] != [] 193s E 193s E First list contains 2 additional elements. 193s E First extra element 0: 193s E {'id': '90c08ac6-7ec9-4606-880c-b431f68ec226', 'name': 'python3', 'last_activity': '2026-01-22T18:19:18.820375Z', 'execution_state': 'starting', 'connections': 0} 193s E 193s E + [] 193s E - [{'connections': 0, 193s E - 'execution_state': 'starting', 193s E - 'id': '90c08ac6-7ec9-4606-880c-b431f68ec226', 193s E - 'last_activity': '2026-01-22T18:19:18.820375Z', 193s E - 'name': 'python3'}, 193s E - {'connections': 0, 193s E - 'execution_state': 'starting', 193s E - 'id': '1866b7db-c99b-4a90-a659-baf8cb939f6d', 193s E - 'last_activity': '2026-01-22T18:19:18.845456Z', 193s E - 'name': 'python3'}] 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 90c08ac6-7ec9-4606-880c-b431f68ec226 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 90c08ac6-7ec9-4606-880c-b431f68ec226 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/90c08ac6-7ec9-4606-880c-b431f68ec226 (::1) 2.470000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1866b7db-c99b-4a90-a659-baf8cb939f6d 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1866b7db-c99b-4a90-a659-baf8cb939f6d 193s ---------------------------- Captured log teardown ----------------------------- 193s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 193s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 193s _____________________ AsyncKernelAPITest.test_connections ______________________ 193s 193s self = 193s 193s def tearDown(self): 193s for k in self.kern_api.list().json(): 193s > self.kern_api.shutdown(k['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log setup ------------------------------ 193s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1v8j_zq1/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1v8j_zq1/etc/jupyter'] for config files 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1v8j_zq1/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1v8j_zq1/config 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1v8j_zq1/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1v8j_zq1/config 193s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1v8j_zq1/notebooks 193s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 193s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 193s WARNING NotebookApp:handlers.py:612 Forbidden 193s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.710000ms referer=None 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-50b20529-8814-4701-a134-d30219c5071f.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59267 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56167 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 50b20529-8814-4701-a134-d30219c5071f, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.210000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 0.890000ms 193s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f/channels 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 193s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 50b20529-8814-4701-a134-d30219c5071f 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48197 193s DEBUG NotebookApp:kernelmanager.py:423 activity on 50b20529-8814-4701-a134-d30219c5071f: status (starting) 193s DEBUG NotebookApp:kernelmanager.py:423 activity on 50b20529-8814-4701-a134-d30219c5071f: status (busy) 193s 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/'}]} 193s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 50b20529-8814-4701-a134-d30219c5071f) to 5.4 (client). 193s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f/channels (::1) 689.240000ms 193s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f/channels 193s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 50b20529-8814-4701-a134-d30219c5071f 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56167 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48197 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59267 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40187 193s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 50b20529-8814-4701-a134-d30219c5071f 193s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 193s Setting websocket_ping_timeout=30000 193s DEBUG NotebookApp:kernelmanager.py:423 activity on 50b20529-8814-4701-a134-d30219c5071f: status (idle) 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 0.860000ms 193s DEBUG NotebookApp:handlers.py:579 Websocket closed 50b20529-8814-4701-a134-d30219c5071f:bda65f7d-83aead2fb562ea118e32a4e4 193s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 50b20529-8814-4701-a134-d30219c5071f:bda65f7d-83aead2fb562ea118e32a4e4 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 50b20529-8814-4701-a134-d30219c5071f 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 0.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 0.890000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 50b20529-8814-4701-a134-d30219c5071f 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 50b20529-8814-4701-a134-d30219c5071f 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 7.350000ms referer=None 193s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 193s 193s self = 193s 193s def tearDown(self): 193s for k in self.kern_api.list().json(): 193s > self.kern_api.shutdown(k['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s Could not import runpy._run_module_as_main 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-d9d6683e-4435-47e8-8cdf-3cc36bf30ba5.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39845 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42845 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: d9d6683e-4435-47e8-8cdf-3cc36bf30ba5, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.550000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.990000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 50b20529-8814-4701-a134-d30219c5071f 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 50b20529-8814-4701-a134-d30219c5071f 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/50b20529-8814-4701-a134-d30219c5071f (::1) 1.020000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d9d6683e-4435-47e8-8cdf-3cc36bf30ba5', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 193s 193s self = 193s 193s def test_kernel_handler(self): 193s # GET kernel with given id 193s kid = self.kern_api.start().json()['id'] 193s r = self.kern_api.get(kid) 193s kern1 = r.json() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(kern1, dict) 193s self.assertIn('id', kern1) 193s self.assertEqual(kern1['id'], kid) 193s 193s # Request a bad kernel id and check that a JSON 193s # message is returned! 193s bad_id = '111-111-111-111-111' 193s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 193s self.kern_api.get(bad_id) 193s 193s # DELETE kernel with id 193s > r = self.kern_api.shutdown(kid) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s File "", line 1371, in _find_and_load 193s File "", line 1333, in _find_and_load_unlocked 193s File "", line 1261, in _find_spec 193s File "", line 1231, in __exit__ 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-6370d659-2f6b-4f7f-8c51-463ba617a0a7.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42769 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55961 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6370d659-2f6b-4f7f-8c51-463ba617a0a7, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.670000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7 (::1) 2.650000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 193s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 193s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.730000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7 (::1) 14.010000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.540000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 (::1) 4.760000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6370d659-2f6b-4f7f-8c51-463ba617a0a7 (::1) 3.040000ms 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 9, in 193s import operator 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 851, in get_code 193s File "", line 950, in get_data 193s KeyboardInterrupt 193s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 193s 193s self = 193s 193s def test_main_kernel_handler(self): 193s # POST request 193s r = self.kern_api.start() 193s kern1 = r.json() 193s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 193s self.assertEqual(r.status_code, 201) 193s self.assertIsInstance(kern1, dict) 193s 193s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 193s expected_csp = '; '.join([ 193s "frame-ancestors 'self'", 193s 'report-uri ' + report_uri, 193s "default-src 'none'" 193s ]) 193s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 193s 193s # GET request 193s r = self.kern_api.list() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(r.json(), list) 193s self.assertEqual(r.json()[0]['id'], kern1['id']) 193s self.assertEqual(r.json()[0]['name'], kern1['name']) 193s 193s # create another kernel and check that they both are added to the 193s # list of kernels from a GET request 193s kern2 = self.kern_api.start().json() 193s assert isinstance(kern2, dict) 193s r = self.kern_api.list() 193s kernels = r.json() 193s self.assertEqual(r.status_code, 200) 193s assert isinstance(kernels, list) 193s self.assertEqual(len(kernels), 2) 193s 193s # Interrupt a kernel 193s r = self.kern_api.interrupt(kern2['id']) 193s self.assertEqual(r.status_code, 204) 193s 193s # Restart a kernel 193s > r = self.kern_api.restart(kern2['id']) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 193s return self._req('POST', url_path_join(id, 'restart')) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/da0bfdf1-2c19-4773-9611-5f4bf17041ae/restart 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ----------------------------- Captured stderr call ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 193s from pathlib._os import ( 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 851, in get_code 193s File "", line 950, in get_data 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-6de2c69f-3fa9-4bf1-8738-96af0c61fefa.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58989 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44023 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.360000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.820000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1v8j_zq1/runtime/kernel-da0bfdf1-2c19-4773-9611-5f4bf17041ae.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39511 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60249 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: da0bfdf1-2c19-4773-9611-5f4bf17041ae, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.610000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 5.280000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: da0bfdf1-2c19-4773-9611-5f4bf17041ae 193s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/da0bfdf1-2c19-4773-9611-5f4bf17041ae/interrupt (::1) 5.120000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 193s yield maybe_future(km.restart_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 193s result = coro.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 193s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 193s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 193s yield self # This tells Task to wait for completion. 193s ^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 193s await ensure_async(kernel.restart_kernel(now=now)) 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 193s await self._async_shutdown_kernel(now=now, restart=True) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/da0bfdf1-2c19-4773-9611-5f4bf17041ae/restart (::1) 8.490000ms referer=None 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 193s yield maybe_future(km.shutdown_kernel(kernel_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa (::1) 6.300000ms referer=None 193s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 193s 193s self = 193s 193s def test_no_kernels(self): 193s """Make sure there are no kernels running at the start""" 193s kernels = self.kern_api.list().json() 193s > self.assertEqual(kernels, []) 193s E AssertionError: Lists differ: [{'id': '6de2c69f-3fa9-4bf1-8738-96af0c61f[281 chars]: 0}] != [] 193s E 193s E First list contains 2 additional elements. 193s E First extra element 0: 193s E {'id': '6de2c69f-3fa9-4bf1-8738-96af0c61fefa', 'name': 'python3', 'last_activity': '2026-01-22T18:19:20.023578Z', 'execution_state': 'starting', 'connections': 0} 193s E 193s E + [] 193s E - [{'connections': 0, 193s E - 'execution_state': 'starting', 193s E - 'id': '6de2c69f-3fa9-4bf1-8738-96af0c61fefa', 193s E - 'last_activity': '2026-01-22T18:19:20.023578Z', 193s E - 'name': 'python3'}, 193s E - {'connections': 0, 193s E - 'execution_state': 'starting', 193s E - 'id': 'da0bfdf1-2c19-4773-9611-5f4bf17041ae', 193s E - 'last_activity': '2026-01-22T18:19:20.059644Z', 193s E - 'name': 'python3'}] 193s 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.900000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6de2c69f-3fa9-4bf1-8738-96af0c61fefa (::1) 2.360000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for da0bfdf1-2c19-4773-9611-5f4bf17041ae 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: da0bfdf1-2c19-4773-9611-5f4bf17041ae 193s ---------------------------- Captured log teardown ----------------------------- 193s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6370d659-2f6b-4f7f-8c51-463ba617a0a7 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6de2c69f-3fa9-4bf1-8738-96af0c61fefa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d9d6683e-4435-47e8-8cdf-3cc36bf30ba5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 50b20529-8814-4701-a134-d30219c5071f 193s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 193s __________________________ SessionAPITest.test_create __________________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log setup ------------------------------ 193s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0_ao6gab/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0_ao6gab/etc/jupyter'] for config files 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0_ao6gab/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0_ao6gab/config 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0_ao6gab/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0_ao6gab/config 193s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0_ao6gab/notebooks 193s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 193s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 193s WARNING NotebookApp:handlers.py:612 Forbidden 193s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.500000ms referer=None 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.330000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-e4ae9e40-245a-4b47-ad48-02d2e1f81763.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55073 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49207 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: e4ae9e40-245a-4b47-ad48-02d2e1f81763, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.510000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.020000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e (::1) 2.580000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e4ae9e40-245a-4b47-ad48-02d2e1f81763 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e4ae9e40-245a-4b47-ad48-02d2e1f81763 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e (::1) 8.440000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 193s class PureWindowsPath(PurePath): 193s ...<7 lines>... 193s __slots__ = () 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 193s import ntpath 193s File "/usr/lib/python3.14/ntpath.py", line 45, in 193s from _winapi import ( 193s ...<2 lines>... 193s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 193s File "", line 1371, in _find_and_load 193s File "", line 1335, in _find_and_load_unlocked 193s KeyboardInterrupt 193s __________________ SessionAPITest.test_create_console_session __________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cfdf8635-78e1-4295-b1b1-6376474adde3 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-2c0fd274-88db-4cbb-baf4-7a2408c6cee2.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48211 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39451 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2c0fd274-88db-4cbb-baf4-7a2408c6cee2, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.790000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.970000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e4ae9e40-245a-4b47-ad48-02d2e1f81763 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e4ae9e40-245a-4b47-ad48-02d2e1f81763 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9463671a-2c07-4f92-b1c0-bd9b12918b8e (::1) 4.250000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2c0fd274-88db-4cbb-baf4-7a2408c6cee2 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2c0fd274-88db-4cbb-baf4-7a2408c6cee2 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cfdf8635-78e1-4295-b1b1-6376474adde3 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cfdf8635-78e1-4295-b1b1-6376474adde3', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cfdf8635-78e1-4295-b1b1-6376474adde3 (::1) 8.230000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 193s class PureWindowsPath(PurePath): 193s ...<7 lines>... 193s __slots__ = () 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 193s import ntpath 193s File "/usr/lib/python3.14/ntpath.py", line 472, in 193s from nt import _path_normpath as normpath 193s File "", line 1371, in _find_and_load 193s File "", line 1333, in _find_and_load_unlocked 193s File "", line 1267, in _find_spec 193s File "", line 1292, in find_spec 193s File "", line 1266, in _get_spec 193s File "", line 1365, in find_spec 193s File "", line 152, in _path_stat 193s KeyboardInterrupt 193s ____________________ SessionAPITest.test_create_deprecated _____________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60ea0155-7511-4310-82c4-0e4859b17ffe 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-212762e6-a666-4b2e-9d2e-9e8953ab182f.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40123 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39507 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 212762e6-a666-4b2e-9d2e-9e8953ab182f, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.880000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.620000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2c0fd274-88db-4cbb-baf4-7a2408c6cee2 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2c0fd274-88db-4cbb-baf4-7a2408c6cee2 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cfdf8635-78e1-4295-b1b1-6376474adde3 (::1) 3.050000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 212762e6-a666-4b2e-9d2e-9e8953ab182f 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 212762e6-a666-4b2e-9d2e-9e8953ab182f 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60ea0155-7511-4310-82c4-0e4859b17ffe (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60ea0155-7511-4310-82c4-0e4859b17ffe', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 236, in 193s magic_check = re.compile('([*?[])') 193s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 193s return _compile(pattern, flags) 193s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 193s p = _compiler.compile(pattern, flags) 193s File "/usr/lib/python3.14/re/_compiler.py", line 780, in compile 193s p.state.groups-1, 193s ^^^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/re/_parser.py", line 83, in groups 193s @property 193s 193s KeyboardInterrupt 193s ___________________ SessionAPITest.test_create_file_session ____________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-09bfab15-3285-4f34-a9a7-f8105371f6a3.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49681 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45343 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 09bfab15-3285-4f34-a9a7-f8105371f6a3, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.160000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 212762e6-a666-4b2e-9d2e-9e8953ab182f 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 212762e6-a666-4b2e-9d2e-9e8953ab182f 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/60ea0155-7511-4310-82c4-0e4859b17ffe (::1) 2.820000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf (::1) 7.210000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "/usr/lib/python3.14/re/__init__.py", line 126, in 193s from . import _compiler, _parser 193s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 193s from . import _parser 193s File "/usr/lib/python3.14/re/_parser.py", line 15, in 193s from ._constants import * 193s File "/usr/lib/python3.14/re/_constants.py", line 23, in 193s class PatternError(Exception): 193s ...<29 lines>... 193s super().__init__(msg) 193s KeyboardInterrupt 193s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 193s 193s self = 193s 193s def test_create_with_kernel_id(self): 193s # create a new kernel 193s r = self.request('POST', 'api/kernels') 193s r.raise_for_status() 193s kernel = r.json() 193s 193s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 193s self.assertEqual(resp.status_code, 201) 193s newsession = resp.json() 193s self.assertIn('id', newsession) 193s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 193s self.assertEqual(newsession['kernel']['id'], kernel['id']) 193s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 193s 193s sessions = self.sess_api.list().json() 193s > self.assertEqual(sessions, [newsession]) 193s E AssertionError: Lists differ: [{'id': 'fe588b70-0af4-47c1-8019-99c9d43b6dbf', 'p[553 chars]ne}}] != [{'id': 'b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', 'p[279 chars]ne}}] 193s E 193s E First differing element 0: 193s E {'id': 'fe588b70-0af4-47c1-8019-99c9d43b6dbf', 'p[218 chars]: 0}} 193s E {'id': 'b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', 'p[278 chars]one}} 193s E 193s E First list contains 1 additional elements. 193s E First extra element 1: 193s E {'id': 'b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '42167dc2-f310-4161-a912-f276cb96c2d1', 'name': 'python3', 'last_activity': '2026-01-22T18:19:20.552275Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 193s E 193s E Diff is 830 characters long. Set self.maxDiff to None to see it. 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-42167dc2-f310-4161-a912-f276cb96c2d1.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40025 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59537 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42167dc2-f310-4161-a912-f276cb96c2d1, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.910000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.170000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 09bfab15-3285-4f34-a9a7-f8105371f6a3 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fe588b70-0af4-47c1-8019-99c9d43b6dbf (::1) 1.590000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42167dc2-f310-4161-a912-f276cb96c2d1 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42167dc2-f310-4161-a912-f276cb96c2d1 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 9.910000ms referer=None 193s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ---------------------------- Captured stderr setup ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 193s from ipykernel import kernelapp as app 193s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 193s from .connect import * # noqa: F403 193s ^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 193s import json 193s File "/usr/lib/python3.14/json/__init__.py", line 106, in 193s from .decoder import JSONDecoder, JSONDecodeError 193s File "/usr/lib/python3.14/json/decoder.py", line 262, in 193s class JSONDecoder(object): 193s ...<101 lines>... 193s return obj, end 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.140000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-286262ba-65b6-400f-b902-33255dca248d.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54089 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57287 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 286262ba-65b6-400f-b902-33255dca248d, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.920000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42167dc2-f310-4161-a912-f276cb96c2d1 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42167dc2-f310-4161-a912-f276cb96c2d1 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 1.610000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 286262ba-65b6-400f-b902-33255dca248d 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 286262ba-65b6-400f-b902-33255dca248d 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 9.220000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 193s class PureWindowsPath(PurePath): 193s ...<7 lines>... 193s __slots__ = () 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 193s import ntpath 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.140000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-e89ae3dd-567d-49f0-8ef6-90af1eeedf42.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59869 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51441 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: e89ae3dd-567d-49f0-8ef6-90af1eeedf42, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 286262ba-65b6-400f-b902-33255dca248d 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 286262ba-65b6-400f-b902-33255dca248d 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 17.490000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e89ae3dd-567d-49f0-8ef6-90af1eeedf42 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e89ae3dd-567d-49f0-8ef6-90af1eeedf42 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2ad4d1f-f943-4d0d-a1e5-6434692a88cc', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 193s from pathlib._os import ( 193s ...<3 lines>... 193s ) 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s _______________________ SessionAPITest.test_modify_type ________________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17d96875-2402-4ffe-97f0-e3263d2cab27 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0_ao6gab/runtime/kernel-5ea9a581-a1f2-4668-98ff-f1280d519a58.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57189 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58251 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ea9a581-a1f2-4668-98ff-f1280d519a58, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp0_ao6gab/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.700000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/17d96875-2402-4ffe-97f0-e3263d2cab27 (::1) 3.040000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.550000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ea9a581-a1f2-4668-98ff-f1280d519a58 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ea9a581-a1f2-4668-98ff-f1280d519a58 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17d96875-2402-4ffe-97f0-e3263d2cab27 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17d96875-2402-4ffe-97f0-e3263d2cab27', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 193s yielded = self.gen.send(value) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 193s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 193s stopper = ensure_async(km.shutdown_kernel(now, restart)) 193s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 193s return _runner_map[name].run(inner) 193s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 193s return fut.result(None) 193s ~~~~~~~~~~^^^^^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 193s return self.__get_result() 193s ~~~~~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 193s raise self._exception 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17d96875-2402-4ffe-97f0-e3263d2cab27 (::1) 7.290000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 6, in 193s import fnmatch 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ---------------------------- Captured log teardown ----------------------------- 193s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ea9a581-a1f2-4668-98ff-f1280d519a58 193s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 193s _______________________ AsyncSessionAPITest.test_create ________________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8c87182a-622c-4e12-80d4-33ff3ffad758 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log setup ------------------------------ 193s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpz_zq8hi_/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpz_zq8hi_/etc/jupyter'] for config files 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpz_zq8hi_/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpz_zq8hi_/config 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpz_zq8hi_/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 193s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpz_zq8hi_/config 193s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpz_zq8hi_/notebooks 193s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 193s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 193s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 193s WARNING NotebookApp:handlers.py:612 Forbidden 193s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.800000ms referer=None 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-f232eec1-00f6-4890-8aab-43c413b4d003.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56043 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51161 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: f232eec1-00f6-4890-8aab-43c413b4d003, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.510000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.970000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8c87182a-622c-4e12-80d4-33ff3ffad758 (::1) 2.480000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f232eec1-00f6-4890-8aab-43c413b4d003 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f232eec1-00f6-4890-8aab-43c413b4d003 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c87182a-622c-4e12-80d4-33ff3ffad758 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c87182a-622c-4e12-80d4-33ff3ffad758', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 193s gc.collect() 193s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 193s 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 193s from pathlib._os import ( 193s ...<3 lines>... 193s ) 193s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 193s import fcntl 193s File "", line 1371, in _find_and_load 193s File "", line 1333, in _find_and_load_unlocked 193s File "", line 1267, in _find_spec 193s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 193s method_name = 'spec_for_{fullname}'.format(**locals()) 193s ~~~~~~^^ 193s KeyboardInterrupt 193s _______________ AsyncSessionAPITest.test_create_console_session ________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2e5a20f6-84b1-4a64-be8c-6c5405eb8ae3 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-6dfc2b61-51cc-4bb1-8300-371c15fc88c5.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60355 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47837 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dfc2b61-51cc-4bb1-8300-371c15fc88c5, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.900000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f232eec1-00f6-4890-8aab-43c413b4d003 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f232eec1-00f6-4890-8aab-43c413b4d003 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8c87182a-622c-4e12-80d4-33ff3ffad758 (::1) 2.520000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dfc2b61-51cc-4bb1-8300-371c15fc88c5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dfc2b61-51cc-4bb1-8300-371c15fc88c5 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2e5a20f6-84b1-4a64-be8c-6c5405eb8ae3 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2e5a20f6-84b1-4a64-be8c-6c5405eb8ae3', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "/usr/lib/python3.14/re/__init__.py", line 126, in 193s from . import _compiler, _parser 193s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 193s from . import _parser 193s File "/usr/lib/python3.14/re/_parser.py", line 15, in 193s from ._constants import * 193s File "/usr/lib/python3.14/re/_constants.py", line 23, in 193s class PatternError(Exception): 193s ...<29 lines>... 193s super().__init__(msg) 193s File "/usr/lib/python3.14/re/_constants.py", line 23, in PatternError 193s class PatternError(Exception): 193s 193s KeyboardInterrupt 193s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a896ff71-2ac3-4853-a4fe-29544f6d0aec 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-ee2f5bf3-1722-4056-8b71-39449f5260aa.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46305 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59761 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee2f5bf3-1722-4056-8b71-39449f5260aa, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.350000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.260000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dfc2b61-51cc-4bb1-8300-371c15fc88c5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dfc2b61-51cc-4bb1-8300-371c15fc88c5 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2e5a20f6-84b1-4a64-be8c-6c5405eb8ae3 (::1) 0.980000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee2f5bf3-1722-4056-8b71-39449f5260aa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee2f5bf3-1722-4056-8b71-39449f5260aa 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a896ff71-2ac3-4853-a4fe-29544f6d0aec (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a896ff71-2ac3-4853-a4fe-29544f6d0aec', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a896ff71-2ac3-4853-a4fe-29544f6d0aec (::1) 6.660000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "/usr/lib/python3.14/re/__init__.py", line 125, in 193s import enum 193s KeyboardInterrupt 193s _________________ AsyncSessionAPITest.test_create_file_session _________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-df749c87-8b1f-4e31-b53f-579285b7bd06.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47065 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42145 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: df749c87-8b1f-4e31-b53f-579285b7bd06, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.470000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee2f5bf3-1722-4056-8b71-39449f5260aa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee2f5bf3-1722-4056-8b71-39449f5260aa 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a896ff71-2ac3-4853-a4fe-29544f6d0aec (::1) 2.750000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df749c87-8b1f-4e31-b53f-579285b7bd06 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df749c87-8b1f-4e31-b53f-579285b7bd06 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93 (::1) 6.760000ms referer=None 193s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 193s 193s self = 193s 193s def test_create_with_kernel_id(self): 193s # create a new kernel 193s r = self.request('POST', 'api/kernels') 193s r.raise_for_status() 193s kernel = r.json() 193s 193s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 193s self.assertEqual(resp.status_code, 201) 193s newsession = resp.json() 193s self.assertIn('id', newsession) 193s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 193s self.assertEqual(newsession['kernel']['id'], kernel['id']) 193s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 193s 193s sessions = self.sess_api.list().json() 193s > self.assertEqual(sessions, [newsession]) 193s E AssertionError: Lists differ: [{'id': '42eeaa15-d7c5-432b-93b8-7468cde0bc93', 'p[553 chars]ne}}] != [{'id': 'ac10aa31-eb25-472d-9d85-96cbfa8f20b5', 'p[279 chars]ne}}] 193s E 193s E First differing element 0: 193s E {'id': '42eeaa15-d7c5-432b-93b8-7468cde0bc93', 'p[218 chars]: 0}} 193s E {'id': 'ac10aa31-eb25-472d-9d85-96cbfa8f20b5', 'p[278 chars]one}} 193s E 193s E First list contains 1 additional elements. 193s E First extra element 1: 193s E {'id': 'ac10aa31-eb25-472d-9d85-96cbfa8f20b5', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '1c2fb5ed-8508-4f73-99b6-a77181f5fc7c', 'name': 'python3', 'last_activity': '2026-01-22T18:19:21.240311Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 193s E 193s E Diff is 830 characters long. Set self.maxDiff to None to see it. 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 193s ---------------------------- Captured stderr setup ----------------------------- 193s Traceback (most recent call last): 193s ----------------------------- Captured stderr call ----------------------------- 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 5, in 193s import re 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-1c2fb5ed-8508-4f73-99b6-a77181f5fc7c.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46299 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40257 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.600000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.370000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df749c87-8b1f-4e31-b53f-579285b7bd06 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df749c87-8b1f-4e31-b53f-579285b7bd06 193s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42eeaa15-d7c5-432b-93b8-7468cde0bc93 (::1) 0.970000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 6.700000ms referer=None 193s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ---------------------------- Captured stderr setup ----------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 193s from ipykernel import kernelapp as app 193s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 193s from .connect import * # noqa: F403 193s ^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 193s import json 193s File "/usr/lib/python3.14/json/__init__.py", line 106, in 193s from .decoder import JSONDecoder, JSONDecodeError 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.230000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-84a781fe-460c-45c1-9f66-b7f26d305673.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33965 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58313 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 84a781fe-460c-45c1-9f66-b7f26d305673, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.060000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 2.110000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84a781fe-460c-45c1-9f66-b7f26d305673 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84a781fe-460c-45c1-9f66-b7f26d305673 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 193s from ipykernel import kernelapp as app 193s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 193s from .connect import * # noqa: F403 193s ^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 193s import json 193s File "/usr/lib/python3.14/json/__init__.py", line 107, in 193s from .encoder import JSONEncoder 193s File "", line 1371, in _find_and_load 193s File "", line 1333, in _find_and_load_unlocked 193s File "", line 1267, in _find_spec 193s File "", line 1292, in find_spec 193s File "", line 1266, in _get_spec 193s File "", line 1365, in find_spec 193s File "", line 152, in _path_stat 193s KeyboardInterrupt 193s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 3.010000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-3407bb02-d3e0-4df6-a003-30284b463e31.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49923 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49417 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3407bb02-d3e0-4df6-a003-30284b463e31, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84a781fe-460c-45c1-9f66-b7f26d305673 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84a781fe-460c-45c1-9f66-b7f26d305673 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 16.270000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3407bb02-d3e0-4df6-a003-30284b463e31 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3407bb02-d3e0-4df6-a003-30284b463e31 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ac10aa31-eb25-472d-9d85-96cbfa8f20b5', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 193s class PureWindowsPath(PurePath): 193s ...<7 lines>... 193s __slots__ = () 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 193s import ntpath 193s File "", line 1371, in _find_and_load 193s File "", line 1342, in _find_and_load_unlocked 193s File "", line 938, in _load_unlocked 193s File "", line 755, in exec_module 193s File "", line 888, in get_code 193s File "", line 511, in _compile_bytecode 193s KeyboardInterrupt 193s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 193s 193s @self.addCleanup 193s def cleanup_sessions(): 193s for session in self.sess_api.list().json(): 193s > self.sess_api.delete(session['id']) 193s 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 193s return self._req('DELETE', id) 193s ^^^^^^^^^^^^^^^^^^^^^^^ 193s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 193s response.raise_for_status() 193s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 193s 193s self = 193s 193s def raise_for_status(self): 193s """Raises :class:`HTTPError`, if one occurred.""" 193s 193s http_error_msg = "" 193s if isinstance(self.reason, bytes): 193s # We attempt to decode utf-8 first because some servers 193s # choose to localize their reason strings. If the string 193s # isn't utf-8, we fall back to iso-8859-1 for all other 193s # encodings. (See PR #3538) 193s try: 193s reason = self.reason.decode("utf-8") 193s except UnicodeDecodeError: 193s reason = self.reason.decode("iso-8859-1") 193s else: 193s reason = self.reason 193s 193s if 400 <= self.status_code < 500: 193s http_error_msg = ( 193s f"{self.status_code} Client Error: {reason} for url: {self.url}" 193s ) 193s 193s elif 500 <= self.status_code < 600: 193s http_error_msg = ( 193s f"{self.status_code} Server Error: {reason} for url: {self.url}" 193s ) 193s 193s if http_error_msg: 193s > raise HTTPError(http_error_msg, response=self) 193s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72ea8c34-c021-4eab-a4f7-204c6d07ad48 193s 193s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 193s ------------------------------ Captured log call ------------------------------- 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 193s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz_zq8hi_/runtime/kernel-f11fda01-f78f-4c77-932b-8aafee8cdf24.json'] 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47403 193s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44821 193s INFO NotebookApp:kernelmanager.py:179 Kernel started: f11fda01-f78f-4c77-932b-8aafee8cdf24, name: python3 193s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpz_zq8hi_/notebooks/foo'} 193s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.920000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/72ea8c34-c021-4eab-a4f7-204c6d07ad48 (::1) 2.810000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.710000ms 193s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 193s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f11fda01-f78f-4c77-932b-8aafee8cdf24 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f11fda01-f78f-4c77-932b-8aafee8cdf24 193s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72ea8c34-c021-4eab-a4f7-204c6d07ad48 (::1) 193s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72ea8c34-c021-4eab-a4f7-204c6d07ad48', version='HTTP/1.1', remote_ip='::1') 193s Traceback (most recent call last): 193s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 193s result = await result 193s ^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 193s future.result() 193s ~~~~~~~~~~~~~^^ 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 193s yield maybe_future(sm.delete_session(session_id)) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 193s yielded = self.gen.throw(exc) 193s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 193s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 193s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 193s value = future.result() 193s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 193s raise self._exception.with_traceback(self._exception_tb) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 193s result = coro.send(None) 193s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 193s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 193s raise km.ready.exception() # type: ignore[misc] 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 193s await kernel_awaitable 193s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 193s result = await obj 193s ^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 193s raise e 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 193s out = await method(self, *args, **kwargs) 193s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 193s await self._async_finish_shutdown(restart=restart) 193s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 193s await asyncio.wait_for( 193s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 193s ) 193s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 193s async with timeouts.timeout(timeout): 193s ~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 193s raise RuntimeError("Timeout should be used inside a task") 193s RuntimeError: Timeout should be used inside a task 193s WARNING NotebookApp:handlers.py:612 Unhandled error 193s ERROR NotebookApp:log.py:55 { 193s "Host": "localhost:12341", 193s "Accept": "*/*", 193s "User-Agent": "python-requests/2.32.5" 193s } 193s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/72ea8c34-c021-4eab-a4f7-204c6d07ad48 (::1) 8.020000ms referer=None 193s --------------------------- Captured stderr teardown --------------------------- 193s Traceback (most recent call last): 193s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 193s return _run_code(code, main_globals, None, 193s "__main__", mod_spec) 193s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 193s exec(code, run_globals) 193s ~~~~^^^^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 193s from pathlib import Path 193s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 193s from glob import _StringGlobber, _no_recurse_symlinks 193s File "/usr/lib/python3.14/glob.py", line 6, in 193s import fnmatch 193s File "/usr/lib/python3.14/fnmatch.py", line 105, in 193s _re_setops_sub = re.compile(r'([&~|])').sub 193s ~~~~~~~~~~^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 193s return _compile(pattern, flags) 193s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 193s p = _compiler.compile(pattern, flags) 193s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 193s code = _code(p, flags) 193s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 193s _compile_info(code, p, flags) 193s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 193s File "/usr/lib/python3.14/re/_compiler.py", line 546, in _compile_info 193s charset, hascased = _optimize_charset(charset) 193s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 193s File "/usr/lib/python3.14/re/_compiler.py", line 248, in _optimize_charset 193s def _optimize_charset(charset, iscased=None, fixup=None, fixes=None): 193s 193s KeyboardInterrupt 193s ---------------------------- Captured log teardown ----------------------------- 193s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f232eec1-00f6-4890-8aab-43c413b4d003 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f11fda01-f78f-4c77-932b-8aafee8cdf24 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84a781fe-460c-45c1-9f66-b7f26d305673 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee2f5bf3-1722-4056-8b71-39449f5260aa 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dfc2b61-51cc-4bb1-8300-371c15fc88c5 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df749c87-8b1f-4e31-b53f-579285b7bd06 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3407bb02-d3e0-4df6-a003-30284b463e31 193s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c2fb5ed-8508-4f73-99b6-a77181f5fc7c 193s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 193s =============================== warnings summary =============================== 193s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 193s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 193s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 193s return LooseVersion(v) >= LooseVersion(check) 193s 193s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 193s services/kernels/tests/test_kernels_api.py: 68 warnings 193s services/sessions/tests/test_sessions_api.py: 106 warnings 193s /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). 193s dt = unaware(*args, **kwargs) 193s 193s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 193s /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 193s pytestmark = pytest.mark.integration_tests 193s 193s services/kernels/tests/test_kernels_api.py: 6 warnings 193s services/sessions/tests/test_sessions_api.py: 6 warnings 193s /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 193s policy = events.get_event_loop_policy() 193s 193s services/kernels/tests/test_kernels_api.py: 24 warnings 193s services/sessions/tests/test_sessions_api.py: 19 warnings 193s /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 193s loop = events.get_event_loop_policy().get_event_loop() 193s 193s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 193s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 193s loop.make_current() 193s 193s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 193s =========================== short test summary info ============================ 193s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 193s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 193s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 193s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 193s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 193s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 193s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 193s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 193s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 193s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 193s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 193s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 193s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 193s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 193s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 193s ===== 25 failed, 2 passed, 303 deselected, 234 warnings, 4 errors in 6.29s ===== 194s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 194s *** 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 197s ============================= test session starts ============================== 197s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 197s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 197s plugins: typeguard-4.4.4 197s collected 330 items / 305 deselected / 25 selected 197s run-last-failure: rerun previous 25 failures 197s 199s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 200s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 200s 200s ==================================== ERRORS ==================================== 200s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 200s class PureWindowsPath(PurePath): 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 200s import ntpath 200s File "/usr/lib/python3.14/ntpath.py", line 514, in 200s from nt import _getfullpathname 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1266, in _get_spec 200s File "", line 1365, in find_spec 200s File "", line 152, in _path_stat 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-7ec4b326-b66c-4112-9c4c-cc119d8b8887.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52147 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46499 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec4b326-b66c-4112-9c4c-cc119d8b8887, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-cecff4ad-9022-4215-9e01-f8b85848e876.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54617 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46179 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: cecff4ad-9022-4215-9e01-f8b85848e876, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.150000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: cecff4ad-9022-4215-9e01-f8b85848e876 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876/interrupt (::1) 7.260000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876/restart (::1) 8.110000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 (::1) 7.930000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "", line 1249, in _path_importer_cache 200s KeyError: '/usr/lib/python3/dist-packages/zmq/sugar' 200s 200s During handling of the above exception, another exception occurred: 200s 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 200s from zmq import sugar 200s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 200s from zmq.sugar import context, frame, poll, socket, tracker, version 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1264, in _get_spec 200s File "", line 1251, in _path_importer_cache 200s File "", line 1227, in _path_hooks 200s File "", line 1451, in path_hook_for_FileFinder 200s File "", line 173, in _path_isdir 200s File "", line 158, in _path_is_mode_type 200s File "", line 152, in _path_stat 200s KeyboardInterrupt 200s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 125, in 200s import enum 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 511, in _compile_bytecode 200s KeyboardInterrupt 200s Fatal Python error: init_import_site: Failed to import the site module 200s Python runtime state: initialized 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/site.py", line 79, in 200s import os 200s File "/usr/lib/python3.14/os.py", line 61, in 200s import posixpath as path 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1266, in _get_spec 200s File "", line 1398, in find_spec 200s File "", line 164, in _path_isfile 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-5212477a-ff2c-4432-bab2-cdcc6efc6dfe.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48837 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53367 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.850000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.130000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-a9be3ee1-ce29-420e-ba50-73169660e5a3.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53525 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53853 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9be3ee1-ce29-420e-ba50-73169660e5a3, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9be3ee1-ce29-420e-ba50-73169660e5a3 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3/interrupt (::1) 1.010000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 200s result = coro.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 200s yield self # This tells Task to wait for completion. 200s ^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3/restart (::1) 9.930000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe (::1) 8.470000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 851, in get_code 200s File "", line 950, in get_data 200s KeyboardInterrupt 200s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-05e873e8-6ca3-493e-a170-9f5f4a54c3f7.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43167 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34019 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05e873e8-6ca3-493e-a170-9f5f4a54c3f7, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.780000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.290000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4 (::1) 3.060000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-a5be8294-102f-472c-960f-1ae356258971.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57939 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34337 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a5be8294-102f-472c-960f-1ae356258971, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.820000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.630000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.670000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e51fc327-dc51-44d1-b283-81b0967424ba 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e51fc327-dc51-44d1-b283-81b0967424ba 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4 (::1) 2.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5be8294-102f-472c-960f-1ae356258971 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5be8294-102f-472c-960f-1ae356258971 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s =================================== FAILURES =================================== 200s ______________________ KernelAPITest.test_default_kernel _______________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/27dc083f-1f41-45c9-940f-9df9b9097366 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmplgrr8ez7/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmplgrr8ez7/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmplgrr8ez7/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmplgrr8ez7/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmplgrr8ez7/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmplgrr8ez7/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmplgrr8ez7/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.240000ms referer=None 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-27dc083f-1f41-45c9-940f-9df9b9097366.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45395 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38777 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27dc083f-1f41-45c9-940f-9df9b9097366, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 51.210000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27dc083f-1f41-45c9-940f-9df9b9097366 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27dc083f-1f41-45c9-940f-9df9b9097366 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/27dc083f-1f41-45c9-940f-9df9b9097366 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/27dc083f-1f41-45c9-940f-9df9b9097366', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 125, in 200s import enum 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 511, in _compile_bytecode 200s KeyboardInterrupt 200s ______________________ KernelAPITest.test_kernel_handler _______________________ 200s 200s self = 200s 200s def test_kernel_handler(self): 200s # GET kernel with given id 200s kid = self.kern_api.start().json()['id'] 200s r = self.kern_api.get(kid) 200s kern1 = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kern1, dict) 200s self.assertIn('id', kern1) 200s self.assertEqual(kern1['id'], kid) 200s 200s # Request a bad kernel id and check that a JSON 200s # message is returned! 200s bad_id = '111-111-111-111-111' 200s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 200s self.kern_api.get(bad_id) 200s 200s # DELETE kernel with id 200s > r = self.kern_api.shutdown(kid) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-48491110-baea-4ff0-9b5b-ffe3442275e4.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57297 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60809 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 48491110-baea-4ff0-9b5b-ffe3442275e4, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.660000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4 (::1) 0.940000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.960000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48491110-baea-4ff0-9b5b-ffe3442275e4 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48491110-baea-4ff0-9b5b-ffe3442275e4 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4 (::1) 6.710000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27dc083f-1f41-45c9-940f-9df9b9097366 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27dc083f-1f41-45c9-940f-9df9b9097366 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/27dc083f-1f41-45c9-940f-9df9b9097366 (::1) 1.180000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48491110-baea-4ff0-9b5b-ffe3442275e4 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48491110-baea-4ff0-9b5b-ffe3442275e4 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/48491110-baea-4ff0-9b5b-ffe3442275e4 (::1) 0.960000ms 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 125, in 200s import enum 200s File "/usr/lib/python3.14/enum.py", line 1384, in 200s class FlagBoundary(StrEnum): 200s ...<10 lines>... 200s KEEP = auto() 200s File "/usr/lib/python3.14/enum.py", line 549, in __new__ 200s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 200s File "/usr/lib/python3.14/enum.py", line 319, in __set_name__ 200s enum_class._hashable_values_.append(value) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s KeyboardInterrupt 200s Error calling __set_name__ on '_proto_member' instance 'STRICT' in 'FlagBoundary' 200s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 200s 200s self = 200s 200s def test_main_kernel_handler(self): 200s # POST request 200s r = self.kern_api.start() 200s kern1 = r.json() 200s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 200s self.assertEqual(r.status_code, 201) 200s self.assertIsInstance(kern1, dict) 200s 200s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 200s expected_csp = '; '.join([ 200s "frame-ancestors 'self'", 200s 'report-uri ' + report_uri, 200s "default-src 'none'" 200s ]) 200s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 200s 200s # GET request 200s r = self.kern_api.list() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(r.json(), list) 200s self.assertEqual(r.json()[0]['id'], kern1['id']) 200s self.assertEqual(r.json()[0]['name'], kern1['name']) 200s 200s # create another kernel and check that they both are added to the 200s # list of kernels from a GET request 200s kern2 = self.kern_api.start().json() 200s assert isinstance(kern2, dict) 200s r = self.kern_api.list() 200s kernels = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kernels, list) 200s self.assertEqual(len(kernels), 2) 200s 200s # Interrupt a kernel 200s r = self.kern_api.interrupt(kern2['id']) 200s self.assertEqual(r.status_code, 204) 200s 200s # Restart a kernel 200s > r = self.kern_api.restart(kern2['id']) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 200s return self._req('POST', url_path_join(id, 'restart')) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876/restart 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 200s class PureWindowsPath(PurePath): 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 200s import ntpath 200s File "/usr/lib/python3.14/ntpath.py", line 514, in 200s from nt import _getfullpathname 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1266, in _get_spec 200s File "", line 1365, in find_spec 200s File "", line 152, in _path_stat 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-7ec4b326-b66c-4112-9c4c-cc119d8b8887.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52147 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46499 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec4b326-b66c-4112-9c4c-cc119d8b8887, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmplgrr8ez7/runtime/kernel-cecff4ad-9022-4215-9e01-f8b85848e876.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54617 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46179 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: cecff4ad-9022-4215-9e01-f8b85848e876, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.150000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: cecff4ad-9022-4215-9e01-f8b85848e876 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876/interrupt (::1) 7.260000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876/restart (::1) 8.110000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 (::1) 7.930000ms referer=None 200s ________________________ KernelAPITest.test_no_kernels _________________________ 200s 200s self = 200s 200s def test_no_kernels(self): 200s """Make sure there are no kernels running at the start""" 200s kernels = self.kern_api.list().json() 200s > self.assertEqual(kernels, []) 200s E AssertionError: Lists differ: [{'id': '7ec4b326-b66c-4112-9c4c-cc119d8b8[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': '7ec4b326-b66c-4112-9c4c-cc119d8b8887', 'name': 'python3', 'last_activity': '2026-01-22T18:19:26.262305Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': '7ec4b326-b66c-4112-9c4c-cc119d8b8887', 200s E - 'last_activity': '2026-01-22T18:19:26.262305Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'cecff4ad-9022-4215-9e01-f8b85848e876', 200s E - 'last_activity': '2026-01-22T18:19:26.285129Z', 200s E - 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.770000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec4b326-b66c-4112-9c4c-cc119d8b8887 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7ec4b326-b66c-4112-9c4c-cc119d8b8887 (::1) 1.220000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cecff4ad-9022-4215-9e01-f8b85848e876 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cecff4ad-9022-4215-9e01-f8b85848e876 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cecff4ad-9022-4215-9e01-f8b85848e876 (::1) 1.290000ms 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s _____________________ AsyncKernelAPITest.test_connections ______________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp8ugyoipx/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp8ugyoipx/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8ugyoipx/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8ugyoipx/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8ugyoipx/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8ugyoipx/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp8ugyoipx/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.710000ms referer=None 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-4e81fc3a-e4b6-4073-a47b-e8bd02a5217e.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58933 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58297 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.180000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 2.650000ms 200s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e/channels 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 200s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39949 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (starting) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (busy) 200s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.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/'}]} 200s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e) to 5.4 (client). 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (idle) 200s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e/channels (::1) 688.610000ms 200s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e/channels 200s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58297 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39949 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58933 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45319 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39949 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58933 200s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 200s Setting websocket_ping_timeout=30000 200s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 0.800000ms 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (busy) 200s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (idle) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (busy) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e: status (idle) 200s DEBUG NotebookApp:handlers.py:579 Websocket closed 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:c4a52c86-e19faeef23ac4e0dec2e7d45 200s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:c4a52c86-e19faeef23ac4e0dec2e7d45 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:iopub 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 1.160000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 0.800000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e:c4a52c86-e19faeef23ac4e0dec2e7d45 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 200s 200s self = 200s 200s def tearDown(self): 200s for k in self.kern_api.list().json(): 200s > self.kern_api.shutdown(k['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b1699a7d-0a18-4e08-adf9-11885871fe00 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-b1699a7d-0a18-4e08-adf9-11885871fe00.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56939 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59511 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1699a7d-0a18-4e08-adf9-11885871fe00, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.800000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 5.180000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4e81fc3a-e4b6-4073-a47b-e8bd02a5217e (::1) 5.250000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1699a7d-0a18-4e08-adf9-11885871fe00 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1699a7d-0a18-4e08-adf9-11885871fe00 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b1699a7d-0a18-4e08-adf9-11885871fe00 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b1699a7d-0a18-4e08-adf9-11885871fe00', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 3, in 200s import contextlib 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 851, in get_code 200s File "", line 950, in get_data 200s KeyboardInterrupt 200s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 200s 200s self = 200s 200s def test_kernel_handler(self): 200s # GET kernel with given id 200s kid = self.kern_api.start().json()['id'] 200s r = self.kern_api.get(kid) 200s kern1 = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kern1, dict) 200s self.assertIn('id', kern1) 200s self.assertEqual(kern1['id'], kid) 200s 200s # Request a bad kernel id and check that a JSON 200s # message is returned! 200s bad_id = '111-111-111-111-111' 200s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 200s self.kern_api.get(bad_id) 200s 200s # DELETE kernel with id 200s > r = self.kern_api.shutdown(kid) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a148556f-7bce-44e0-80e2-b22864fbbebe 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-a148556f-7bce-44e0-80e2-b22864fbbebe.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38547 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34297 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a148556f-7bce-44e0-80e2-b22864fbbebe, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.220000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a148556f-7bce-44e0-80e2-b22864fbbebe (::1) 0.850000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.940000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a148556f-7bce-44e0-80e2-b22864fbbebe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a148556f-7bce-44e0-80e2-b22864fbbebe 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a148556f-7bce-44e0-80e2-b22864fbbebe (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a148556f-7bce-44e0-80e2-b22864fbbebe', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a148556f-7bce-44e0-80e2-b22864fbbebe (::1) 13.540000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.430000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1699a7d-0a18-4e08-adf9-11885871fe00 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1699a7d-0a18-4e08-adf9-11885871fe00 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b1699a7d-0a18-4e08-adf9-11885871fe00 (::1) 0.980000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a148556f-7bce-44e0-80e2-b22864fbbebe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a148556f-7bce-44e0-80e2-b22864fbbebe 200s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 200s 200s self = 200s 200s def test_main_kernel_handler(self): 200s # POST request 200s r = self.kern_api.start() 200s kern1 = r.json() 200s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 200s self.assertEqual(r.status_code, 201) 200s self.assertIsInstance(kern1, dict) 200s 200s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 200s expected_csp = '; '.join([ 200s "frame-ancestors 'self'", 200s 'report-uri ' + report_uri, 200s "default-src 'none'" 200s ]) 200s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 200s 200s # GET request 200s r = self.kern_api.list() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(r.json(), list) 200s self.assertEqual(r.json()[0]['id'], kern1['id']) 200s self.assertEqual(r.json()[0]['name'], kern1['name']) 200s 200s # create another kernel and check that they both are added to the 200s # list of kernels from a GET request 200s kern2 = self.kern_api.start().json() 200s assert isinstance(kern2, dict) 200s r = self.kern_api.list() 200s kernels = r.json() 200s self.assertEqual(r.status_code, 200) 200s assert isinstance(kernels, list) 200s self.assertEqual(len(kernels), 2) 200s 200s # Interrupt a kernel 200s r = self.kern_api.interrupt(kern2['id']) 200s self.assertEqual(r.status_code, 204) 200s 200s # Restart a kernel 200s > r = self.kern_api.restart(kern2['id']) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 200s return self._req('POST', url_path_join(id, 'restart')) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3/restart 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 125, in 200s import enum 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 511, in _compile_bytecode 200s KeyboardInterrupt 200s Fatal Python error: init_import_site: Failed to import the site module 200s Python runtime state: initialized 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/site.py", line 79, in 200s import os 200s File "/usr/lib/python3.14/os.py", line 61, in 200s import posixpath as path 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1266, in _get_spec 200s File "", line 1398, in find_spec 200s File "", line 164, in _path_isfile 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-5212477a-ff2c-4432-bab2-cdcc6efc6dfe.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48837 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53367 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.850000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.130000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8ugyoipx/runtime/kernel-a9be3ee1-ce29-420e-ba50-73169660e5a3.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53525 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53853 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9be3ee1-ce29-420e-ba50-73169660e5a3, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.520000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9be3ee1-ce29-420e-ba50-73169660e5a3 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3/interrupt (::1) 1.010000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 200s yield maybe_future(km.restart_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 200s result = coro.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 200s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 200s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 200s yield self # This tells Task to wait for completion. 200s ^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 200s await ensure_async(kernel.restart_kernel(now=now)) 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 200s await self._async_shutdown_kernel(now=now, restart=True) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3/restart (::1) 9.930000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe (::1) 8.470000ms referer=None 200s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 200s 200s self = 200s 200s def test_no_kernels(self): 200s """Make sure there are no kernels running at the start""" 200s kernels = self.kern_api.list().json() 200s > self.assertEqual(kernels, []) 200s E AssertionError: Lists differ: [{'id': '5212477a-ff2c-4432-bab2-cdcc6efc6[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': '5212477a-ff2c-4432-bab2-cdcc6efc6dfe', 'name': 'python3', 'last_activity': '2026-01-22T18:19:27.447241Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': '5212477a-ff2c-4432-bab2-cdcc6efc6dfe', 200s E - 'last_activity': '2026-01-22T18:19:27.447241Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'a9be3ee1-ce29-420e-ba50-73169660e5a3', 200s E - 'last_activity': '2026-01-22T18:19:27.477335Z', 200s E - 'name': 'python3'}] 200s 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5212477a-ff2c-4432-bab2-cdcc6efc6dfe (::1) 0.980000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9be3ee1-ce29-420e-ba50-73169660e5a3 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9be3ee1-ce29-420e-ba50-73169660e5a3 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a9be3ee1-ce29-420e-ba50-73169660e5a3 (::1) 1.030000ms 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1699a7d-0a18-4e08-adf9-11885871fe00 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a148556f-7bce-44e0-80e2-b22864fbbebe 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e81fc3a-e4b6-4073-a47b-e8bd02a5217e 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5212477a-ff2c-4432-bab2-cdcc6efc6dfe 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s __________________________ SessionAPITest.test_create __________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f5d05a6c-42be-4529-986f-7be90644d250 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpaijz2w4o/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpaijz2w4o/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpaijz2w4o/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpaijz2w4o/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpaijz2w4o/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpaijz2w4o/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpaijz2w4o/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.740000ms referer=None 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-c57489f1-eaac-4326-aa6f-9185857dd3e2.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49787 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43417 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: c57489f1-eaac-4326-aa6f-9185857dd3e2, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpaijz2w4o/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.070000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/f5d05a6c-42be-4529-986f-7be90644d250 (::1) 2.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c57489f1-eaac-4326-aa6f-9185857dd3e2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c57489f1-eaac-4326-aa6f-9185857dd3e2 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f5d05a6c-42be-4529-986f-7be90644d250 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f5d05a6c-42be-4529-986f-7be90644d250', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 77, in 200s class PurePath: 200s ...<516 lines>... 200s return True 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 260, in PurePath 200s @classmethod 200s ^^^^^^^^^^^ 200s KeyboardInterrupt 200s __________________ SessionAPITest.test_create_console_session __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b272efad-05d6-4457-bea2-8e11b28881eb 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-c23da692-c641-4203-b6ec-4265b6bee528.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35257 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48359 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: c23da692-c641-4203-b6ec-4265b6bee528, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpaijz2w4o/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c57489f1-eaac-4326-aa6f-9185857dd3e2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c57489f1-eaac-4326-aa6f-9185857dd3e2 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f5d05a6c-42be-4529-986f-7be90644d250 (::1) 1.290000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c23da692-c641-4203-b6ec-4265b6bee528 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c23da692-c641-4203-b6ec-4265b6bee528 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b272efad-05d6-4457-bea2-8e11b28881eb (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b272efad-05d6-4457-bea2-8e11b28881eb', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 200s class PureWindowsPath(PurePath): 200s ...<7 lines>... 200s __slots__ = () 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 200s import ntpath 200s File "/usr/lib/python3.14/ntpath.py", line 557, in 200s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 200s File "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1267, in _find_spec 200s File "", line 1292, in find_spec 200s File "", line 1266, in _get_spec 200s File "", line 1365, in find_spec 200s File "", line 152, in _path_stat 200s KeyboardInterrupt 200s ____________________ SessionAPITest.test_create_deprecated _____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3cc91c0b-22a9-44c6-a7b0-d091bfa84b89 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-1ca124ba-aea1-4a88-a285-fa438281cfbf.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48331 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48363 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1ca124ba-aea1-4a88-a285-fa438281cfbf, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpaijz2w4o/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.810000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.650000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c23da692-c641-4203-b6ec-4265b6bee528 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c23da692-c641-4203-b6ec-4265b6bee528 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b272efad-05d6-4457-bea2-8e11b28881eb (::1) 3.190000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca124ba-aea1-4a88-a285-fa438281cfbf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca124ba-aea1-4a88-a285-fa438281cfbf 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3cc91c0b-22a9-44c6-a7b0-d091bfa84b89 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3cc91c0b-22a9-44c6-a7b0-d091bfa84b89', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3cc91c0b-22a9-44c6-a7b0-d091bfa84b89 (::1) 8.590000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 237, in 200s magic_check_bytes = re.compile(b'([*?[])') 200s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.14/re/__init__.py", line 351, in _compile 200s if flags & DEBUG: 200s ~~~~~~^~~~~~~ 200s File "/usr/lib/python3.14/enum.py", line 1593, in __and__ 200s def __and__(self, other): 200s 200s KeyboardInterrupt 200s ___________________ SessionAPITest.test_create_file_session ____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-0401f830-0d16-4b3e-ac3b-301cc0c32352.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53967 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45507 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0401f830-0d16-4b3e-ac3b-301cc0c32352, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpaijz2w4o/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.420000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca124ba-aea1-4a88-a285-fa438281cfbf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca124ba-aea1-4a88-a285-fa438281cfbf 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3cc91c0b-22a9-44c6-a7b0-d091bfa84b89 (::1) 2.280000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4 (::1) 7.800000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 200s from glob import _StringGlobber, _no_recurse_symlinks 200s File "/usr/lib/python3.14/glob.py", line 6, in 200s import fnmatch 200s File "/usr/lib/python3.14/fnmatch.py", line 105, in 200s _re_setops_sub = re.compile(r'([&~|])').sub 200s ~~~~~~~~~~^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 200s return _compile(pattern, flags) 200s File "/usr/lib/python3.14/re/__init__.py", line 351, in _compile 200s if flags & DEBUG: 200s ~~~~~~^~~~~~~ 200s File "/usr/lib/python3.14/enum.py", line 1593, in __and__ 200s def __and__(self, other): 200s 200s KeyboardInterrupt 200s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 200s 200s self = 200s 200s def test_create_with_kernel_id(self): 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 200s self.assertEqual(resp.status_code, 201) 200s newsession = resp.json() 200s self.assertIn('id', newsession) 200s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 200s self.assertEqual(newsession['kernel']['id'], kernel['id']) 200s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 200s 200s sessions = self.sess_api.list().json() 200s > self.assertEqual(sessions, [newsession]) 200s E AssertionError: Lists differ: [{'id': '33420029-6d1f-46ab-9c83-bf5f280a0eb4', 'pa[552 chars]ne}}] != [{'id': '3b674658-2ee2-44cd-b447-4b5f413b22d1', 'pa[278 chars]ne}}] 200s E 200s E First differing element 0: 200s E {'id': '33420029-6d1f-46ab-9c83-bf5f280a0eb4', 'pa[217 chars]: 0}} 200s E {'id': '3b674658-2ee2-44cd-b447-4b5f413b22d1', 'pa[277 chars]one}} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': '3b674658-2ee2-44cd-b447-4b5f413b22d1', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '05e873e8-6ca3-493e-a170-9f5f4a54c3f7', 'name': 'python3', 'last_activity': '2026-01-22T18:19:28.010004Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 200s E 200s E Diff is 830 characters long. Set self.maxDiff to None to see it. 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-05e873e8-6ca3-493e-a170-9f5f4a54c3f7.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43167 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34019 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05e873e8-6ca3-493e-a170-9f5f4a54c3f7, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.780000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.290000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0401f830-0d16-4b3e-ac3b-301cc0c32352 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/33420029-6d1f-46ab-9c83-bf5f280a0eb4 (::1) 3.060000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ---------------------------- Captured stderr setup ----------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 200s from subprocess import PIPE, Popen 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 511, in _compile_bytecode 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-534dc390-7530-486e-a766-ccf30406c84b.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32835 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38479 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 534dc390-7530-486e-a766-ccf30406c84b, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e873e8-6ca3-493e-a170-9f5f4a54c3f7 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 1.620000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 534dc390-7530-486e-a766-ccf30406c84b 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 534dc390-7530-486e-a766-ccf30406c84b 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 200s import json 200s File "/usr/lib/python3.14/json/__init__.py", line 107, in 200s from .encoder import JSONEncoder 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 511, in _compile_bytecode 200s KeyboardInterrupt 200s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.780000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpaijz2w4o/runtime/kernel-9a5eed6c-2787-4721-acf6-2d600fd5ec3e.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44931 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55383 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9a5eed6c-2787-4721-acf6-2d600fd5ec3e, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpaijz2w4o/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 534dc390-7530-486e-a766-ccf30406c84b 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 534dc390-7530-486e-a766-ccf30406c84b 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 21.220000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.660000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.670000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a5eed6c-2787-4721-acf6-2d600fd5ec3e 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a5eed6c-2787-4721-acf6-2d600fd5ec3e 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3b674658-2ee2-44cd-b447-4b5f413b22d1', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 200s from pathlib import Path 200s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 200s from pathlib._os import ( 200s ...<3 lines>... 200s ) 200s File "", line 1368, in _find_and_load 200s File "", line 424, in __exit__ 200s File "", line 378, in release 200s KeyboardInterrupt 200s _______________________ AsyncSessionAPITest.test_create ________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpc4uhbanp/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpc4uhbanp/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc4uhbanp/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc4uhbanp/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc4uhbanp/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc4uhbanp/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpc4uhbanp/notebooks 200s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 200s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 200s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 200s WARNING NotebookApp:handlers.py:612 Forbidden 200s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.710000ms referer=None 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-69706f5d-eb2b-4031-b121-a889106802d9.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35571 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44155 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 69706f5d-eb2b-4031-b121-a889106802d9, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc4uhbanp/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.810000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.450000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823 (::1) 0.920000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 69706f5d-eb2b-4031-b121-a889106802d9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69706f5d-eb2b-4031-b121-a889106802d9 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823 (::1) 7.240000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 200s return _run_code(code, main_globals, None, 200s "__main__", mod_spec) 200s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 200s exec(code, run_globals) 200s ~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 200s from ipykernel import kernelapp as app 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 938, in _load_unlocked 200s File "", line 755, in exec_module 200s File "", line 888, in get_code 200s File "", line 515, in _compile_bytecode 200s KeyboardInterrupt 200s _______________ AsyncSessionAPITest.test_create_console_session ________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cca4344c-f68f-40a9-b1d2-57f0c8de9eda 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-043a6a8d-e4e9-4d4c-91bc-fe743e93ed53.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48291 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60983 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 043a6a8d-e4e9-4d4c-91bc-fe743e93ed53, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc4uhbanp/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.040000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.840000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 69706f5d-eb2b-4031-b121-a889106802d9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69706f5d-eb2b-4031-b121-a889106802d9 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/09c4ffb1-656d-4951-8db7-d026f6e6c823 (::1) 1.260000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 043a6a8d-e4e9-4d4c-91bc-fe743e93ed53 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 043a6a8d-e4e9-4d4c-91bc-fe743e93ed53 200s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cca4344c-f68f-40a9-b1d2-57f0c8de9eda (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cca4344c-f68f-40a9-b1d2-57f0c8de9eda', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cca4344c-f68f-40a9-b1d2-57f0c8de9eda (::1) 7.370000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 200s gc.collect() 200s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 201s 201s --------------------------- Captured stderr teardown --------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 201s from pathlib import Path 201s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 201s from glob import _StringGlobber, _no_recurse_symlinks 201s File "/usr/lib/python3.14/glob.py", line 5, in 201s import re 201s File "/usr/lib/python3.14/re/__init__.py", line 126, in 201s from . import _compiler, _parser 201s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 201s from . import _parser 201s File "/usr/lib/python3.14/re/_parser.py", line 20, in 201s DIGITS = frozenset("0123456789") 201s KeyboardInterrupt 201s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 201s 201s @self.addCleanup 201s def cleanup_sessions(): 201s for session in self.sess_api.list().json(): 201s > self.sess_api.delete(session['id']) 201s 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 201s return self._req('DELETE', id) 201s ^^^^^^^^^^^^^^^^^^^^^^^ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 201s response.raise_for_status() 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s 201s self = 201s 201s def raise_for_status(self): 201s """Raises :class:`HTTPError`, if one occurred.""" 201s 201s http_error_msg = "" 201s if isinstance(self.reason, bytes): 201s # We attempt to decode utf-8 first because some servers 201s # choose to localize their reason strings. If the string 201s # isn't utf-8, we fall back to iso-8859-1 for all other 201s # encodings. (See PR #3538) 201s try: 201s reason = self.reason.decode("utf-8") 201s except UnicodeDecodeError: 201s reason = self.reason.decode("iso-8859-1") 201s else: 201s reason = self.reason 201s 201s if 400 <= self.status_code < 500: 201s http_error_msg = ( 201s f"{self.status_code} Client Error: {reason} for url: {self.url}" 201s ) 201s 201s elif 500 <= self.status_code < 600: 201s http_error_msg = ( 201s f"{self.status_code} Server Error: {reason} for url: {self.url}" 201s ) 201s 201s if http_error_msg: 201s > raise HTTPError(http_error_msg, response=self) 201s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fc2e11a3-7308-471d-8156-ce916955f57b 201s 201s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 201s ------------------------------ Captured log call ------------------------------- 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 201s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 201s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8.json'] 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53321 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33069 201s INFO NotebookApp:kernelmanager.py:179 Kernel started: 892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8, name: python3 201s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc4uhbanp/notebooks/foo'} 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.500000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.790000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 043a6a8d-e4e9-4d4c-91bc-fe743e93ed53 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 043a6a8d-e4e9-4d4c-91bc-fe743e93ed53 201s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cca4344c-f68f-40a9-b1d2-57f0c8de9eda (::1) 2.650000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8 201s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fc2e11a3-7308-471d-8156-ce916955f57b (::1) 201s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fc2e11a3-7308-471d-8156-ce916955f57b', version='HTTP/1.1', remote_ip='::1') 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 201s result = await result 201s ^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 201s future.result() 201s ~~~~~~~~~~~~~^^ 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 201s yield maybe_future(sm.delete_session(session_id)) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 201s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 201s raise self._exception.with_traceback(self._exception_tb) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 201s result = coro.send(None) 201s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 201s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 201s raise km.ready.exception() # type: ignore[misc] 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s WARNING NotebookApp:handlers.py:612 Unhandled error 201s --------------------------- Captured stderr teardown --------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 201s from pathlib import Path 201s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 201s from glob import _StringGlobber, _no_recurse_symlinks 201s File "/usr/lib/python3.14/glob.py", line 5, in 201s import re 201s File "/usr/lib/python3.14/re/__init__.py", line 143, in 201s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 201s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/enum.py", line 1781, in convert_class 201s body[name] = obj 201s ~~~~^^^^^^ 201s KeyboardInterrupt 201s _________________ AsyncSessionAPITest.test_create_file_session _________________ 201s 201s @self.addCleanup 201s def cleanup_sessions(): 201s for session in self.sess_api.list().json(): 201s > self.sess_api.delete(session['id']) 201s 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 201s return self._req('DELETE', id) 201s ^^^^^^^^^^^^^^^^^^^^^^^ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 201s response.raise_for_status() 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s 201s self = 201s 201s def raise_for_status(self): 201s """Raises :class:`HTTPError`, if one occurred.""" 201s 201s http_error_msg = "" 201s if isinstance(self.reason, bytes): 201s # We attempt to decode utf-8 first because some servers 201s # choose to localize their reason strings. If the string 201s # isn't utf-8, we fall back to iso-8859-1 for all other 201s # encodings. (See PR #3538) 201s try: 201s reason = self.reason.decode("utf-8") 201s except UnicodeDecodeError: 201s reason = self.reason.decode("iso-8859-1") 201s else: 201s reason = self.reason 201s 201s if 400 <= self.status_code < 500: 201s http_error_msg = ( 201s f"{self.status_code} Client Error: {reason} for url: {self.url}" 201s ) 201s 201s elif 500 <= self.status_code < 600: 201s http_error_msg = ( 201s f"{self.status_code} Server Error: {reason} for url: {self.url}" 201s ) 201s 201s if http_error_msg: 201s > raise HTTPError(http_error_msg, response=self) 201s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4 201s 201s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 201s ------------------------------ Captured log call ------------------------------- 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 201s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-e51fc327-dc51-44d1-b283-81b0967424ba.json'] 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41467 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56657 201s INFO NotebookApp:kernelmanager.py:179 Kernel started: e51fc327-dc51-44d1-b283-81b0967424ba, name: python3 201s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc4uhbanp/notebooks/foo'} 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.360000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 892f0b75-91e2-4ccd-8b6d-9e3658a1c2e8 201s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fc2e11a3-7308-471d-8156-ce916955f57b (::1) 2.660000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e51fc327-dc51-44d1-b283-81b0967424ba 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e51fc327-dc51-44d1-b283-81b0967424ba 201s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4 (::1) 201s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4', version='HTTP/1.1', remote_ip='::1') 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 201s result = await result 201s ^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 201s future.result() 201s ~~~~~~~~~~~~~^^ 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 201s yield maybe_future(sm.delete_session(session_id)) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 201s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 201s raise self._exception.with_traceback(self._exception_tb) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 201s result = coro.send(None) 201s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 201s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 201s raise km.ready.exception() # type: ignore[misc] 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s WARNING NotebookApp:handlers.py:612 Unhandled error 201s --------------------------- Captured stderr teardown --------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 201s from pathlib import Path 201s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 201s from glob import _StringGlobber, _no_recurse_symlinks 201s File "/usr/lib/python3.14/glob.py", line 5, in 201s import re 201s File "/usr/lib/python3.14/re/__init__.py", line 126, in 201s from . import _compiler, _parser 201s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 201s from . import _parser 201s File "", line 1371, in _find_and_load 201s File "", line 1333, in _find_and_load_unlocked 201s File "", line 1267, in _find_spec 201s File "", line 1292, in find_spec 201s File "", line 1266, in _get_spec 201s File "", line 1397, in find_spec 201s KeyboardInterrupt 201s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 201s 201s self = 201s 201s def test_create_with_kernel_id(self): 201s # create a new kernel 201s r = self.request('POST', 'api/kernels') 201s r.raise_for_status() 201s kernel = r.json() 201s 201s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 201s self.assertEqual(resp.status_code, 201) 201s newsession = resp.json() 201s self.assertIn('id', newsession) 201s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 201s self.assertEqual(newsession['kernel']['id'], kernel['id']) 201s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 201s 201s sessions = self.sess_api.list().json() 201s > self.assertEqual(sessions, [newsession]) 201s E AssertionError: Lists differ: [{'id': 'c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4', 'p[553 chars]ne}}] != [{'id': 'd342930f-7dac-4413-a7cf-117aca1736ce', 'p[279 chars]ne}}] 201s E 201s E First differing element 0: 201s E {'id': 'c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4', 'p[218 chars]: 0}} 201s E {'id': 'd342930f-7dac-4413-a7cf-117aca1736ce', 'p[278 chars]one}} 201s E 201s E First list contains 1 additional elements. 201s E First extra element 1: 201s E {'id': 'd342930f-7dac-4413-a7cf-117aca1736ce', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a5be8294-102f-472c-960f-1ae356258971', 'name': 'python3', 'last_activity': '2026-01-22T18:19:28.639539Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 201s E 201s E Diff is 830 characters long. Set self.maxDiff to None to see it. 201s 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 201s ------------------------------ Captured log call ------------------------------- 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 201s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-a5be8294-102f-472c-960f-1ae356258971.json'] 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57939 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34337 201s INFO NotebookApp:kernelmanager.py:179 Kernel started: a5be8294-102f-472c-960f-1ae356258971, name: python3 201s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.820000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.630000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.670000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e51fc327-dc51-44d1-b283-81b0967424ba 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e51fc327-dc51-44d1-b283-81b0967424ba 201s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c7043d62-c9a2-469d-bb3c-e3cc33ed0fa4 (::1) 2.710000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5be8294-102f-472c-960f-1ae356258971 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5be8294-102f-472c-960f-1ae356258971 201s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 201s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce', version='HTTP/1.1', remote_ip='::1') 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 201s result = await result 201s ^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 201s future.result() 201s ~~~~~~~~~~~~~^^ 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 201s yield maybe_future(sm.delete_session(session_id)) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 201s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 201s raise self._exception.with_traceback(self._exception_tb) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 201s result = coro.send(None) 201s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 201s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 201s raise km.ready.exception() # type: ignore[misc] 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s WARNING NotebookApp:handlers.py:612 Unhandled error 201s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 201s 201s @self.addCleanup 201s def cleanup_sessions(): 201s for session in self.sess_api.list().json(): 201s > self.sess_api.delete(session['id']) 201s 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 201s return self._req('DELETE', id) 201s ^^^^^^^^^^^^^^^^^^^^^^^ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 201s response.raise_for_status() 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s 201s self = 201s 201s def raise_for_status(self): 201s """Raises :class:`HTTPError`, if one occurred.""" 201s 201s http_error_msg = "" 201s if isinstance(self.reason, bytes): 201s # We attempt to decode utf-8 first because some servers 201s # choose to localize their reason strings. If the string 201s # isn't utf-8, we fall back to iso-8859-1 for all other 201s # encodings. (See PR #3538) 201s try: 201s reason = self.reason.decode("utf-8") 201s except UnicodeDecodeError: 201s reason = self.reason.decode("iso-8859-1") 201s else: 201s reason = self.reason 201s 201s if 400 <= self.status_code < 500: 201s http_error_msg = ( 201s f"{self.status_code} Client Error: {reason} for url: {self.url}" 201s ) 201s 201s elif 500 <= self.status_code < 600: 201s http_error_msg = ( 201s f"{self.status_code} Server Error: {reason} for url: {self.url}" 201s ) 201s 201s if http_error_msg: 201s > raise HTTPError(http_error_msg, response=self) 201s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce 201s 201s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 201s ---------------------------- Captured stderr setup ----------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 201s from ipykernel import kernelapp as app 201s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 201s from .connect import * # noqa: F403 201s ^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 201s import json 201s File "/usr/lib/python3.14/json/__init__.py", line 107, in 201s from .encoder import JSONEncoder 201s File "", line 1371, in _find_and_load 201s File "", line 1342, in _find_and_load_unlocked 201s File "", line 938, in _load_unlocked 201s File "", line 755, in exec_module 201s File "", line 888, in get_code 201s File "", line 511, in _compile_bytecode 201s KeyboardInterrupt 201s ------------------------------ Captured log call ------------------------------- 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.200000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 201s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-eefaf701-d53f-458e-8c56-5ebaeeba1fa6.json'] 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49879 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60977 201s INFO NotebookApp:kernelmanager.py:179 Kernel started: eefaf701-d53f-458e-8c56-5ebaeeba1fa6, name: python3 201s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.240000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5be8294-102f-472c-960f-1ae356258971 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5be8294-102f-472c-960f-1ae356258971 201s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 1.490000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.700000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eefaf701-d53f-458e-8c56-5ebaeeba1fa6 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eefaf701-d53f-458e-8c56-5ebaeeba1fa6 201s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 201s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce', version='HTTP/1.1', remote_ip='::1') 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 201s result = await result 201s ^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 201s future.result() 201s ~~~~~~~~~~~~~^^ 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 201s yield maybe_future(sm.delete_session(session_id)) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 201s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 201s raise self._exception.with_traceback(self._exception_tb) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 201s result = coro.send(None) 201s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 201s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 201s raise km.ready.exception() # type: ignore[misc] 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s WARNING NotebookApp:handlers.py:612 Unhandled error 201s --------------------------- Captured stderr teardown --------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 201s from pathlib import Path 201s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 201s from pathlib._os import ( 201s ...<3 lines>... 201s ) 201s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 201s import fcntl 201s File "", line 1360, in _find_and_load 201s KeyboardInterrupt 201s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 201s 201s @self.addCleanup 201s def cleanup_sessions(): 201s for session in self.sess_api.list().json(): 201s > self.sess_api.delete(session['id']) 201s 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 201s return self._req('DELETE', id) 201s ^^^^^^^^^^^^^^^^^^^^^^^ 201s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 201s response.raise_for_status() 201s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 201s 201s self = 201s 201s def raise_for_status(self): 201s """Raises :class:`HTTPError`, if one occurred.""" 201s 201s http_error_msg = "" 201s if isinstance(self.reason, bytes): 201s # We attempt to decode utf-8 first because some servers 201s # choose to localize their reason strings. If the string 201s # isn't utf-8, we fall back to iso-8859-1 for all other 201s # encodings. (See PR #3538) 201s try: 201s reason = self.reason.decode("utf-8") 201s except UnicodeDecodeError: 201s reason = self.reason.decode("iso-8859-1") 201s else: 201s reason = self.reason 201s 201s if 400 <= self.status_code < 500: 201s http_error_msg = ( 201s f"{self.status_code} Client Error: {reason} for url: {self.url}" 201s ) 201s 201s elif 500 <= self.status_code < 600: 201s http_error_msg = ( 201s f"{self.status_code} Server Error: {reason} for url: {self.url}" 201s ) 201s 201s if http_error_msg: 201s > raise HTTPError(http_error_msg, response=self) 201s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce 201s 201s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 201s ------------------------------ Captured log call ------------------------------- 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.940000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 201s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc4uhbanp/runtime/kernel-a7ef34cb-e5a7-485a-91eb-dc3212da09a4.json'] 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52351 201s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40973 201s INFO NotebookApp:kernelmanager.py:179 Kernel started: a7ef34cb-e5a7-485a-91eb-dc3212da09a4, name: python3 201s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpc4uhbanp/notebooks/foo'} 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eefaf701-d53f-458e-8c56-5ebaeeba1fa6 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eefaf701-d53f-458e-8c56-5ebaeeba1fa6 201s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 16.930000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.540000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 201s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 201s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a7ef34cb-e5a7-485a-91eb-dc3212da09a4 201s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a7ef34cb-e5a7-485a-91eb-dc3212da09a4 201s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce (::1) 201s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d342930f-7dac-4413-a7cf-117aca1736ce', version='HTTP/1.1', remote_ip='::1') 201s Traceback (most recent call last): 201s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 201s result = await result 201s ^^^^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 201s future.result() 201s ~~~~~~~~~~~~~^^ 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 201s yield maybe_future(sm.delete_session(session_id)) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 201s yielded = self.gen.throw(exc) 201s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 201s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 201s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 201s value = future.result() 201s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 201s raise self._exception.with_traceback(self._exception_tb) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 201s result = coro.send(None) 201s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 201s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 201s raise km.ready.exception() # type: ignore[misc] 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 201s await kernel_awaitable 201s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 201s result = await obj 201s ^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 201s raise e 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 201s out = await method(self, *args, **kwargs) 201s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 201s await self._async_finish_shutdown(restart=restart) 201s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 201s await asyncio.wait_for( 201s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 201s ) 201s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 201s async with timeouts.timeout(timeout): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^ 201s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 201s raise RuntimeError("Timeout should be used inside a task") 201s RuntimeError: Timeout should be used inside a task 201s WARNING NotebookApp:handlers.py:612 Unhandled error 201s --------------------------- Captured stderr teardown --------------------------- 201s Traceback (most recent call last): 201s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 201s return _run_code(code, main_globals, None, 201s "__main__", mod_spec) 201s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 201s exec(code, run_globals) 201s ~~~~^^^^^^^^^^^^^^^^^^^ 201s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 201s from pathlib import Path 201s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 201s from glob import _StringGlobber, _no_recurse_symlinks 201s File "/usr/lib/python3.14/glob.py", line 5, in 201s import re 201s File "/usr/lib/python3.14/re/__init__.py", line 125, in 201s import enum 201s File "/usr/lib/python3.14/enum.py", line 1399, in 201s class Flag(Enum, boundary=STRICT): 201s ...<228 lines>... 201s __rxor__ = __xor__ 201s File "/usr/lib/python3.14/enum.py", line 1575, in Flag 201s def _get_value(self, flag): 201s ...<4 lines>... 201s return NotImplemented 201s File "/usr/lib/python3.14/enum.py", line 396, in __setitem__ 201s elif _is_descriptor(value): 201s ~~~~~~~~~~~~~~^^^^^^^ 201s File "/usr/lib/python3.14/enum.py", line 36, in _is_descriptor 201s def _is_descriptor(obj): 201s 201s KeyboardInterrupt 201s =============================== warnings summary =============================== 201s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 201s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 201s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 201s return LooseVersion(v) >= LooseVersion(check) 201s 201s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 201s services/kernels/tests/test_kernels_api.py: 72 warnings 201s services/sessions/tests/test_sessions_api.py: 96 warnings 201s /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). 201s dt = unaware(*args, **kwargs) 201s 201s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 201s /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 201s pytestmark = pytest.mark.integration_tests 201s 201s services/kernels/tests/test_kernels_api.py: 6 warnings 201s services/sessions/tests/test_sessions_api.py: 6 warnings 201s /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 201s policy = events.get_event_loop_policy() 201s 201s services/kernels/tests/test_kernels_api.py: 24 warnings 201s services/sessions/tests/test_sessions_api.py: 19 warnings 201s /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 201s loop = events.get_event_loop_policy().get_event_loop() 201s 201s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 201s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 201s loop.make_current() 201s 201s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 201s =========================== short test summary info ============================ 201s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 201s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 201s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 201s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 201s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 201s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 201s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 201s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 201s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 201s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 201s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 201s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 201s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 201s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 201s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 201s ===== 23 failed, 2 passed, 305 deselected, 228 warnings, 4 errors in 6.02s ===== 201s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 201s *** 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 206s ============================= test session starts ============================== 206s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 206s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 206s plugins: typeguard-4.4.4 206s collected 330 items / 307 deselected / 23 selected 206s run-last-failure: rerun previous 23 failures 206s 206s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 207s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 207s 207s ==================================== ERRORS ==================================== 207s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 207s 207s self = 207s 207s def tearDown(self): 207s for k in self.kern_api.list().json(): 207s > self.kern_api.shutdown(k['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "", line 1371, in _find_and_load 207s File "", line 1342, in _find_and_load_unlocked 207s File "", line 938, in _load_unlocked 207s File "", line 755, in exec_module 207s File "", line 888, in get_code 207s File "", line 511, in _compile_bytecode 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-1105cdd9-9a9f-4870-bb2d-684308f877b7.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41031 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48309 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1105cdd9-9a9f-4870-bb2d-684308f877b7, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-d12b1590-458e-45a0-ae48-0edbe4c2f529.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53697 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41851 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: d12b1590-458e-45a0-ae48-0edbe4c2f529, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.860000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.900000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d12b1590-458e-45a0-ae48-0edbe4c2f529 207s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529/interrupt (::1) 2.830000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 207s yield maybe_future(km.restart_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 207s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 207s await ensure_async(kernel.restart_kernel(now=now)) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 207s await self._async_shutdown_kernel(now=now, restart=True) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529/restart (::1) 10.720000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.480000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 207s yielded = ctx_run(next, result) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 (::1) 7.580000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 207s from ipykernel import kernelapp as app 207s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 207s from .connect import * # noqa: F403 207s ^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 207s import jupyter_client 207s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 207s from .asynchronous import AsyncKernelClient 207s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 207s from .client import AsyncKernelClient # noqa 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 207s import zmq.asyncio 207s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 207s import asyncio 207s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 207s from .base_events import * 207s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 207s import concurrent.futures 207s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 207s from concurrent.futures._base import (FIRST_COMPLETED, 207s ...<9 lines>... 207s as_completed) 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 207s import logging 207s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 207s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 207s File "/usr/lib/python3.14/traceback.py", line 12, in 207s import _colorize 207s File "/usr/lib/python3.14/_colorize.py", line 174, in 207s @dataclass(frozen=True) 207s ~~~~~~~~~^^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 207s return _process_class(cls, init, repr, eq, order, unsafe_hash, 207s frozen, match_args, kw_only, slots, 207s weakref_slot) 207s File "/usr/lib/python3.14/dataclasses.py", line 1222, in _process_class 207s text_sig = str(inspect.signature( 207s ~~~^^^^^^^^^^^^^^^^^^^ 207s cls, 207s ^^^^ 207s annotation_format=annotationlib.Format.FORWARDREF, 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s )).replace(' -> None', '') 207s ^^ 207s File "/usr/lib/python3.14/inspect.py", line 3255, in __str__ 207s return self.format() 207s ~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/inspect.py", line 3274, in format 207s formatted = param._format(quote_annotation_strings=quote_annotation_strings) 207s File "/usr/lib/python3.14/inspect.py", line 2775, in _format 207s annotation = formatannotation(self._annotation, 207s quote_annotation_strings=quote_annotation_strings) 207s File "/usr/lib/python3.14/inspect.py", line 1338, in formatannotation 207s def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True): 207s 207s KeyboardInterrupt 207s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 207s 207s self = 207s 207s def tearDown(self): 207s for k in self.kern_api.list().json(): 207s > self.kern_api.shutdown(k['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Fatal Python error: init_import_site: Failed to import the site module 207s Python runtime state: initialized 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/site.py", line 79, in 207s import os 207s File "/usr/lib/python3.14/os.py", line 1017, in 207s __all__.extend(["spawnlp", "spawnlpe"]) 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-5d4a7c7a-2f9c-4609-aab5-d4f07aab9219.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38051 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38139 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.960000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-7b90af74-8b60-4208-b375-872359d1622a.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57855 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51895 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b90af74-8b60-4208-b375-872359d1622a, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.800000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.960000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7b90af74-8b60-4208-b375-872359d1622a 207s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a/interrupt (::1) 1.010000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 207s yield maybe_future(km.restart_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 207s result = coro.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 207s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 207s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 207s yield self # This tells Task to wait for completion. 207s ^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 207s await ensure_async(kernel.restart_kernel(now=now)) 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 207s await self._async_shutdown_kernel(now=now, restart=True) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a/restart (::1) 7.010000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.920000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 (::1) 14.110000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 207s from ipykernel import kernelapp as app 207s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 207s from .connect import * # noqa: F403 207s ^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 207s import jupyter_client 207s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 207s from .asynchronous import AsyncKernelClient 207s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 207s from .client import AsyncKernelClient # noqa 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 207s import zmq.asyncio 207s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 207s from zmq import sugar 207s File "", line 1371, in _find_and_load 207s File "", line 1333, in _find_and_load_unlocked 207s File "", line 1267, in _find_spec 207s File "", line 1292, in find_spec 207s File "", line 1266, in _get_spec 207s File "", line 1365, in find_spec 207s File "", line 152, in _path_stat 207s KeyboardInterrupt 207s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-fd1fd9c7-ab00-4b41-8dab-0e70c309d284.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38867 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57695 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd1fd9c7-ab00-4b41-8dab-0e70c309d284, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.580000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.010000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.440000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/25d47f5b-e1ae-4f0c-a477-9c5c69138be2 (::1) 2.580000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-23c8a6a5-8cde-4601-aa21-879c4fb9d68f.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57261 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38089 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.200000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.040000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b41af84d-0c8a-4437-8137-afb930302a73 (::1) 2.500000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 6.680000ms referer=None 207s =================================== FAILURES =================================== 207s ______________________ KernelAPITest.test_default_kernel _______________________ 207s 207s self = 207s 207s def tearDown(self): 207s for k in self.kern_api.list().json(): 207s > self.kern_api.shutdown(k['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b7ba0028-7a2f-422c-af4c-12d2f898715f 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log setup ------------------------------ 207s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphchx6m_o/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphchx6m_o/etc/jupyter'] for config files 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphchx6m_o/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphchx6m_o/config 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphchx6m_o/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphchx6m_o/config 207s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphchx6m_o/notebooks 207s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 207s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 207s WARNING NotebookApp:handlers.py:612 Forbidden 207s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.940000ms referer=None 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-b7ba0028-7a2f-422c-af4c-12d2f898715f.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58087 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60369 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7ba0028-7a2f-422c-af4c-12d2f898715f, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 51.190000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.170000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7ba0028-7a2f-422c-af4c-12d2f898715f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7ba0028-7a2f-422c-af4c-12d2f898715f 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b7ba0028-7a2f-422c-af4c-12d2f898715f (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b7ba0028-7a2f-422c-af4c-12d2f898715f', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 207s yielded = ctx_run(next, result) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b7ba0028-7a2f-422c-af4c-12d2f898715f (::1) 8.970000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 207s from glob import _StringGlobber, _no_recurse_symlinks 207s File "/usr/lib/python3.14/glob.py", line 3, in 207s import contextlib 207s File "/usr/lib/python3.14/contextlib.py", line 367, in 207s class aclosing(AbstractAsyncContextManager): 207s ...<22 lines>... 207s await self.thing.aclose() 207s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 207s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 207s KeyboardInterrupt 207s ______________________ KernelAPITest.test_kernel_handler _______________________ 207s 207s self = 207s 207s def test_kernel_handler(self): 207s # GET kernel with given id 207s kid = self.kern_api.start().json()['id'] 207s r = self.kern_api.get(kid) 207s kern1 = r.json() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(kern1, dict) 207s self.assertIn('id', kern1) 207s self.assertEqual(kern1['id'], kid) 207s 207s # Request a bad kernel id and check that a JSON 207s # message is returned! 207s bad_id = '111-111-111-111-111' 207s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 207s self.kern_api.get(bad_id) 207s 207s # DELETE kernel with id 207s > r = self.kern_api.shutdown(kid) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f4b21516-1a49-4300-9a0e-1883fc82d680 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-f4b21516-1a49-4300-9a0e-1883fc82d680.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50465 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38793 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: f4b21516-1a49-4300-9a0e-1883fc82d680, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.850000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f4b21516-1a49-4300-9a0e-1883fc82d680 (::1) 0.880000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 207s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 207s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.920000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4b21516-1a49-4300-9a0e-1883fc82d680 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4b21516-1a49-4300-9a0e-1883fc82d680 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f4b21516-1a49-4300-9a0e-1883fc82d680 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f4b21516-1a49-4300-9a0e-1883fc82d680', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 207s yielded = ctx_run(next, result) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f4b21516-1a49-4300-9a0e-1883fc82d680 (::1) 8.350000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7ba0028-7a2f-422c-af4c-12d2f898715f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7ba0028-7a2f-422c-af4c-12d2f898715f 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b7ba0028-7a2f-422c-af4c-12d2f898715f (::1) 1.120000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f4b21516-1a49-4300-9a0e-1883fc82d680 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f4b21516-1a49-4300-9a0e-1883fc82d680 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 207s from glob import _StringGlobber, _no_recurse_symlinks 207s File "/usr/lib/python3.14/glob.py", line 5, in 207s import re 207s File "/usr/lib/python3.14/re/__init__.py", line 126, in 207s from . import _compiler, _parser 207s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 207s from . import _parser 207s File "/usr/lib/python3.14/re/_parser.py", line 15, in 207s from ._constants import * 207s File "/usr/lib/python3.14/re/_constants.py", line 209, in 207s CH_NEGATE = dict(zip(CHCODES[::2] + CHCODES[1::2], CHCODES[1::2] + CHCODES[::2])) 207s ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s KeyboardInterrupt 207s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 207s 207s self = 207s 207s def test_main_kernel_handler(self): 207s # POST request 207s r = self.kern_api.start() 207s kern1 = r.json() 207s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 207s self.assertEqual(r.status_code, 201) 207s self.assertIsInstance(kern1, dict) 207s 207s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 207s expected_csp = '; '.join([ 207s "frame-ancestors 'self'", 207s 'report-uri ' + report_uri, 207s "default-src 'none'" 207s ]) 207s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 207s 207s # GET request 207s r = self.kern_api.list() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(r.json(), list) 207s self.assertEqual(r.json()[0]['id'], kern1['id']) 207s self.assertEqual(r.json()[0]['name'], kern1['name']) 207s 207s # create another kernel and check that they both are added to the 207s # list of kernels from a GET request 207s kern2 = self.kern_api.start().json() 207s assert isinstance(kern2, dict) 207s r = self.kern_api.list() 207s kernels = r.json() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(kernels, list) 207s self.assertEqual(len(kernels), 2) 207s 207s # Interrupt a kernel 207s r = self.kern_api.interrupt(kern2['id']) 207s self.assertEqual(r.status_code, 204) 207s 207s # Restart a kernel 207s > r = self.kern_api.restart(kern2['id']) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 207s return self._req('POST', url_path_join(id, 'restart')) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529/restart 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "", line 1371, in _find_and_load 207s File "", line 1342, in _find_and_load_unlocked 207s File "", line 938, in _load_unlocked 207s File "", line 755, in exec_module 207s File "", line 888, in get_code 207s File "", line 511, in _compile_bytecode 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-1105cdd9-9a9f-4870-bb2d-684308f877b7.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41031 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48309 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1105cdd9-9a9f-4870-bb2d-684308f877b7, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphchx6m_o/runtime/kernel-d12b1590-458e-45a0-ae48-0edbe4c2f529.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53697 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41851 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: d12b1590-458e-45a0-ae48-0edbe4c2f529, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.860000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.900000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d12b1590-458e-45a0-ae48-0edbe4c2f529 207s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529/interrupt (::1) 2.830000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 207s yield maybe_future(km.restart_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 207s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 207s await ensure_async(kernel.restart_kernel(now=now)) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 207s await self._async_shutdown_kernel(now=now, restart=True) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529/restart (::1) 10.720000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.480000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 207s yielded = ctx_run(next, result) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 (::1) 7.580000ms referer=None 207s ________________________ KernelAPITest.test_no_kernels _________________________ 207s 207s self = 207s 207s def test_no_kernels(self): 207s """Make sure there are no kernels running at the start""" 207s kernels = self.kern_api.list().json() 207s > self.assertEqual(kernels, []) 207s E AssertionError: Lists differ: [{'id': '1105cdd9-9a9f-4870-bb2d-684308f87[281 chars]: 0}] != [] 207s E 207s E First list contains 2 additional elements. 207s E First extra element 0: 207s E {'id': '1105cdd9-9a9f-4870-bb2d-684308f877b7', 'name': 'python3', 'last_activity': '2026-01-22T18:19:33.702024Z', 'execution_state': 'starting', 'connections': 0} 207s E 207s E + [] 207s E - [{'connections': 0, 207s E - 'execution_state': 'starting', 207s E - 'id': '1105cdd9-9a9f-4870-bb2d-684308f877b7', 207s E - 'last_activity': '2026-01-22T18:19:33.702024Z', 207s E - 'name': 'python3'}, 207s E - {'connections': 0, 207s E - 'execution_state': 'starting', 207s E - 'id': 'd12b1590-458e-45a0-ae48-0edbe4c2f529', 207s E - 'last_activity': '2026-01-22T18:19:33.726480Z', 207s E - 'name': 'python3'}] 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.570000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1105cdd9-9a9f-4870-bb2d-684308f877b7 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1105cdd9-9a9f-4870-bb2d-684308f877b7 (::1) 1.300000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d12b1590-458e-45a0-ae48-0edbe4c2f529 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d12b1590-458e-45a0-ae48-0edbe4c2f529 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d12b1590-458e-45a0-ae48-0edbe4c2f529 (::1) 1.420000ms 207s ---------------------------- Captured log teardown ----------------------------- 207s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 207s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 207s _____________________ AsyncKernelAPITest.test_connections ______________________ 207s 207s self = 207s 207s def tearDown(self): 207s for k in self.kern_api.list().json(): 207s > self.kern_api.shutdown(k['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log setup ------------------------------ 207s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpv8dx7_xu/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpv8dx7_xu/etc/jupyter'] for config files 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv8dx7_xu/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv8dx7_xu/config 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv8dx7_xu/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv8dx7_xu/config 207s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpv8dx7_xu/notebooks 207s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 207s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 207s WARNING NotebookApp:handlers.py:612 Forbidden 207s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-ff317e29-8831-47a8-9e3f-058145e3efc7.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54527 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44815 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff317e29-8831-47a8-9e3f-058145e3efc7, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.520000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 0.970000ms 207s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7/channels 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 207s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43185 207s 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/'}]} 207s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel ff317e29-8831-47a8-9e3f-058145e3efc7) to 5.4 (client). 207s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7/channels (::1) 668.510000ms 207s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7/channels 207s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44815 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43185 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54527 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48909 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43185 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54527 207s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 207s Setting websocket_ping_timeout=30000 207s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 0.990000ms 207s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:handlers.py:579 Websocket closed ff317e29-8831-47a8-9e3f-058145e3efc7:5eb3ec65-a1f55c0e15d930f3a44ab28f 207s INFO NotebookApp:kernelmanager.py:222 Starting buffering for ff317e29-8831-47a8-9e3f-058145e3efc7:5eb3ec65-a1f55c0e15d930f3a44ab28f 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ff317e29-8831-47a8-9e3f-058145e3efc7:iopub 207s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ff317e29-8831-47a8-9e3f-058145e3efc7:iopub 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ff317e29-8831-47a8-9e3f-058145e3efc7:iopub 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 1.040000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 0.840000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff317e29-8831-47a8-9e3f-058145e3efc7 207s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for ff317e29-8831-47a8-9e3f-058145e3efc7:5eb3ec65-a1f55c0e15d930f3a44ab28f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff317e29-8831-47a8-9e3f-058145e3efc7 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 8.970000ms referer=None 207s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 207s 207s self = 207s 207s def tearDown(self): 207s for k in self.kern_api.list().json(): 207s > self.kern_api.shutdown(k['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Could not import runpy._run_module_as_main 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-7bf31473-b64d-450f-9002-b4d36d4aaaa3.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60725 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45889 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7bf31473-b64d-450f-9002-b4d36d4aaaa3, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.640000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.270000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff317e29-8831-47a8-9e3f-058145e3efc7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff317e29-8831-47a8-9e3f-058145e3efc7 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ff317e29-8831-47a8-9e3f-058145e3efc7 (::1) 4.250000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7bf31473-b64d-450f-9002-b4d36d4aaaa3 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7bf31473-b64d-450f-9002-b4d36d4aaaa3', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7bf31473-b64d-450f-9002-b4d36d4aaaa3 (::1) 14.900000ms referer=None 207s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 207s 207s self = 207s 207s def test_kernel_handler(self): 207s # GET kernel with given id 207s kid = self.kern_api.start().json()['id'] 207s r = self.kern_api.get(kid) 207s kern1 = r.json() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(kern1, dict) 207s self.assertIn('id', kern1) 207s self.assertEqual(kern1['id'], kid) 207s 207s # Request a bad kernel id and check that a JSON 207s # message is returned! 207s bad_id = '111-111-111-111-111' 207s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 207s self.kern_api.get(bad_id) 207s 207s # DELETE kernel with id 207s > r = self.kern_api.shutdown(kid) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 16, in 207s import io 207s File "/usr/lib/python3.14/io.py", line 87, in 207s BufferedIOBase.register(klass) 207s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3.14/abc.py", line 115, in register 207s return _abc_register(cls, subclass) 207s File "/usr/lib/python3.14/abc.py", line 123, in __subclasscheck__ 207s return _abc_subclasscheck(cls, subclass) 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-d493569f-f85b-4550-8dcb-077169a79b53.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51167 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58405 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: d493569f-f85b-4550-8dcb-077169a79b53, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.510000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53 (::1) 4.120000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 207s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 207s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 6.360000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d493569f-f85b-4550-8dcb-077169a79b53 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d493569f-f85b-4550-8dcb-077169a79b53 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53 (::1) 16.420000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.990000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7bf31473-b64d-450f-9002-b4d36d4aaaa3 (::1) 0.940000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d493569f-f85b-4550-8dcb-077169a79b53 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d493569f-f85b-4550-8dcb-077169a79b53 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d493569f-f85b-4550-8dcb-077169a79b53 (::1) 0.980000ms 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 207s from glob import _StringGlobber, _no_recurse_symlinks 207s File "/usr/lib/python3.14/glob.py", line 3, in 207s import contextlib 207s File "/usr/lib/python3.14/contextlib.py", line 6, in 207s from collections import deque 207s File "/usr/lib/python3.14/collections/__init__.py", line 35, in 207s from itertools import chain as _chain 207s KeyboardInterrupt 207s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 207s 207s self = 207s 207s def test_main_kernel_handler(self): 207s # POST request 207s r = self.kern_api.start() 207s kern1 = r.json() 207s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 207s self.assertEqual(r.status_code, 201) 207s self.assertIsInstance(kern1, dict) 207s 207s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 207s expected_csp = '; '.join([ 207s "frame-ancestors 'self'", 207s 'report-uri ' + report_uri, 207s "default-src 'none'" 207s ]) 207s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 207s 207s # GET request 207s r = self.kern_api.list() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(r.json(), list) 207s self.assertEqual(r.json()[0]['id'], kern1['id']) 207s self.assertEqual(r.json()[0]['name'], kern1['name']) 207s 207s # create another kernel and check that they both are added to the 207s # list of kernels from a GET request 207s kern2 = self.kern_api.start().json() 207s assert isinstance(kern2, dict) 207s r = self.kern_api.list() 207s kernels = r.json() 207s self.assertEqual(r.status_code, 200) 207s assert isinstance(kernels, list) 207s self.assertEqual(len(kernels), 2) 207s 207s # Interrupt a kernel 207s r = self.kern_api.interrupt(kern2['id']) 207s self.assertEqual(r.status_code, 204) 207s 207s # Restart a kernel 207s > r = self.kern_api.restart(kern2['id']) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 207s return self._req('POST', url_path_join(id, 'restart')) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a/restart 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ----------------------------- Captured stderr call ----------------------------- 207s Fatal Python error: init_import_site: Failed to import the site module 207s Python runtime state: initialized 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/site.py", line 79, in 207s import os 207s File "/usr/lib/python3.14/os.py", line 1017, in 207s __all__.extend(["spawnlp", "spawnlpe"]) 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-5d4a7c7a-2f9c-4609-aab5-d4f07aab9219.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38051 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38139 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.960000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv8dx7_xu/runtime/kernel-7b90af74-8b60-4208-b375-872359d1622a.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57855 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51895 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b90af74-8b60-4208-b375-872359d1622a, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.800000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.960000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7b90af74-8b60-4208-b375-872359d1622a 207s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a/interrupt (::1) 1.010000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 207s yield maybe_future(km.restart_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 207s result = coro.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 207s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 207s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 207s yield self # This tells Task to wait for completion. 207s ^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 207s await ensure_async(kernel.restart_kernel(now=now)) 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 207s await self._async_shutdown_kernel(now=now, restart=True) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a/restart (::1) 7.010000ms referer=None 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.920000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 207s yield maybe_future(km.shutdown_kernel(kernel_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 (::1) 14.110000ms referer=None 207s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 207s 207s self = 207s 207s def test_no_kernels(self): 207s """Make sure there are no kernels running at the start""" 207s kernels = self.kern_api.list().json() 207s > self.assertEqual(kernels, []) 207s E AssertionError: Lists differ: [{'id': '5d4a7c7a-2f9c-4609-aab5-d4f07aab9[281 chars]: 0}] != [] 207s E 207s E First list contains 2 additional elements. 207s E First extra element 0: 207s E {'id': '5d4a7c7a-2f9c-4609-aab5-d4f07aab9219', 'name': 'python3', 'last_activity': '2026-01-22T18:19:34.883376Z', 'execution_state': 'starting', 'connections': 0} 207s E 207s E + [] 207s E - [{'connections': 0, 207s E - 'execution_state': 'starting', 207s E - 'id': '5d4a7c7a-2f9c-4609-aab5-d4f07aab9219', 207s E - 'last_activity': '2026-01-22T18:19:34.883376Z', 207s E - 'name': 'python3'}, 207s E - {'connections': 0, 207s E - 'execution_state': 'starting', 207s E - 'id': '7b90af74-8b60-4208-b375-872359d1622a', 207s E - 'last_activity': '2026-01-22T18:19:34.916224Z', 207s E - 'name': 'python3'}] 207s 207s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.240000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.610000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 (::1) 2.680000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b90af74-8b60-4208-b375-872359d1622a 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b90af74-8b60-4208-b375-872359d1622a 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7b90af74-8b60-4208-b375-872359d1622a (::1) 1.090000ms 207s ---------------------------- Captured log teardown ----------------------------- 207s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bf31473-b64d-450f-9002-b4d36d4aaaa3 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff317e29-8831-47a8-9e3f-058145e3efc7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5d4a7c7a-2f9c-4609-aab5-d4f07aab9219 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d493569f-f85b-4550-8dcb-077169a79b53 207s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 207s __________________________ SessionAPITest.test_create __________________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1f806329-3d1f-49f1-84fd-28090a5d5040 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log setup ------------------------------ 207s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpc566j0p6/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpc566j0p6/etc/jupyter'] for config files 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc566j0p6/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc566j0p6/config 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc566j0p6/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc566j0p6/config 207s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpc566j0p6/notebooks 207s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 207s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 207s WARNING NotebookApp:handlers.py:612 Forbidden 207s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.330000ms referer=None 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.350000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-d4027f23-bca1-45f6-8b52-e2155588a8dc.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57811 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59893 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4027f23-bca1-45f6-8b52-e2155588a8dc, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc566j0p6/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.350000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.970000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1f806329-3d1f-49f1-84fd-28090a5d5040 (::1) 2.400000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4027f23-bca1-45f6-8b52-e2155588a8dc 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4027f23-bca1-45f6-8b52-e2155588a8dc 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1f806329-3d1f-49f1-84fd-28090a5d5040 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1f806329-3d1f-49f1-84fd-28090a5d5040', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 622, in 207s class Path(PurePath): 207s ...<660 lines>... 207s return path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 971, in Path 207s if hasattr(os, "readlink"): 207s ~~~~~~~^^^^^^^^^^^^^^^^ 207s KeyboardInterrupt 207s __________________ SessionAPITest.test_create_console_session __________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b1135cf4-5bb5-4102-824b-93b10f4e737e 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-0c5220c2-7990-48ec-bb5d-60e2874f2a7d.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51815 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57105 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c5220c2-7990-48ec-bb5d-60e2874f2a7d, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc566j0p6/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.640000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.560000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4027f23-bca1-45f6-8b52-e2155588a8dc 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4027f23-bca1-45f6-8b52-e2155588a8dc 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1f806329-3d1f-49f1-84fd-28090a5d5040 (::1) 1.250000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c5220c2-7990-48ec-bb5d-60e2874f2a7d 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c5220c2-7990-48ec-bb5d-60e2874f2a7d 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b1135cf4-5bb5-4102-824b-93b10f4e737e (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b1135cf4-5bb5-4102-824b-93b10f4e737e', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b1135cf4-5bb5-4102-824b-93b10f4e737e (::1) 7.550000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 598, in 207s os.PathLike.register(PurePath) 207s ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ 207s File "/usr/lib/python3.14/abc.py", line 115, in register 207s return _abc_register(cls, subclass) 207s File "/usr/lib/python3.14/abc.py", line 123, in __subclasscheck__ 207s return _abc_subclasscheck(cls, subclass) 207s File "/usr/lib/python3.14/os.py", line 1134, in __subclasshook__ 207s @classmethod 207s 207s KeyboardInterrupt 207s ____________________ SessionAPITest.test_create_deprecated _____________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/96fd0440-6f8d-4e31-a6cb-f4336654f2a4 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-0e9dafab-dbcb-4ed0-be69-dcb9f23d2836.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43613 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41889 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0e9dafab-dbcb-4ed0-be69-dcb9f23d2836, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc566j0p6/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.530000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.430000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c5220c2-7990-48ec-bb5d-60e2874f2a7d 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c5220c2-7990-48ec-bb5d-60e2874f2a7d 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b1135cf4-5bb5-4102-824b-93b10f4e737e (::1) 2.770000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e9dafab-dbcb-4ed0-be69-dcb9f23d2836 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e9dafab-dbcb-4ed0-be69-dcb9f23d2836 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/96fd0440-6f8d-4e31-a6cb-f4336654f2a4 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/96fd0440-6f8d-4e31-a6cb-f4336654f2a4', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/96fd0440-6f8d-4e31-a6cb-f4336654f2a4 (::1) 8.600000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "", line 1249, in _path_importer_cache 207s KeyError: '/usr/lib/python3.14/re' 207s 207s During handling of the above exception, another exception occurred: 207s 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 207s from glob import _StringGlobber, _no_recurse_symlinks 207s File "/usr/lib/python3.14/glob.py", line 5, in 207s import re 207s File "/usr/lib/python3.14/re/__init__.py", line 126, in 207s from . import _compiler, _parser 207s File "", line 1371, in _find_and_load 207s File "", line 1333, in _find_and_load_unlocked 207s File "", line 1267, in _find_spec 207s File "", line 1292, in find_spec 207s File "", line 1264, in _get_spec 207s File "", line 1251, in _path_importer_cache 207s File "", line 1227, in _path_hooks 207s File "", line 1453, in path_hook_for_FileFinder 207s File "", line 1331, in __init__ 207s KeyboardInterrupt 207s ___________________ SessionAPITest.test_create_file_session ____________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/25d47f5b-e1ae-4f0c-a477-9c5c69138be2 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-91b54293-2bef-45a9-b1a2-1f501420e5d2.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52327 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46411 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91b54293-2bef-45a9-b1a2-1f501420e5d2, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc566j0p6/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.850000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e9dafab-dbcb-4ed0-be69-dcb9f23d2836 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e9dafab-dbcb-4ed0-be69-dcb9f23d2836 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/96fd0440-6f8d-4e31-a6cb-f4336654f2a4 (::1) 1.290000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/25d47f5b-e1ae-4f0c-a477-9c5c69138be2 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/25d47f5b-e1ae-4f0c-a477-9c5c69138be2', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 207s from glob import _StringGlobber, _no_recurse_symlinks 207s File "/usr/lib/python3.14/glob.py", line 5, in 207s import re 207s File "/usr/lib/python3.14/re/__init__.py", line 143, in 207s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 207s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/enum.py", line 1838, in convert_class 207s setattr(enum_class, name, member) 207s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/enum.py", line 818, in __setattr__ 207s member_map = cls.__dict__.get('_member_map_', {}) 207s KeyboardInterrupt 207s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 207s 207s self = 207s 207s def test_create_with_kernel_id(self): 207s # create a new kernel 207s r = self.request('POST', 'api/kernels') 207s r.raise_for_status() 207s kernel = r.json() 207s 207s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 207s self.assertEqual(resp.status_code, 201) 207s newsession = resp.json() 207s self.assertIn('id', newsession) 207s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 207s self.assertEqual(newsession['kernel']['id'], kernel['id']) 207s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 207s 207s sessions = self.sess_api.list().json() 207s > self.assertEqual(sessions, [newsession]) 207s E AssertionError: Lists differ: [{'id': '25d47f5b-e1ae-4f0c-a477-9c5c69138be2', 'p[553 chars]ne}}] != [{'id': '83cb4b36-4171-4b4d-a13e-079cbfeb1a55', 'p[279 chars]ne}}] 207s E 207s E First differing element 0: 207s E {'id': '25d47f5b-e1ae-4f0c-a477-9c5c69138be2', 'p[218 chars]: 0}} 207s E {'id': '83cb4b36-4171-4b4d-a13e-079cbfeb1a55', 'p[278 chars]one}} 207s E 207s E First list contains 1 additional elements. 207s E First extra element 1: 207s E {'id': '83cb4b36-4171-4b4d-a13e-079cbfeb1a55', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'fd1fd9c7-ab00-4b41-8dab-0e70c309d284', 'name': 'python3', 'last_activity': '2026-01-22T18:19:35.438566Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 207s E 207s E Diff is 830 characters long. Set self.maxDiff to None to see it. 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-fd1fd9c7-ab00-4b41-8dab-0e70c309d284.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38867 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57695 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd1fd9c7-ab00-4b41-8dab-0e70c309d284, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.580000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.010000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.440000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b54293-2bef-45a9-b1a2-1f501420e5d2 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/25d47f5b-e1ae-4f0c-a477-9c5c69138be2 (::1) 2.580000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ---------------------------- Captured stderr setup ----------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 207s from ipykernel import kernelapp as app 207s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 207s from .connect import * # noqa: F403 207s ^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 207s from subprocess import PIPE, Popen 207s File "/usr/lib/python3.14/subprocess.py", line 46, in 207s import locale 207s File "", line 1371, in _find_and_load 207s File "", line 1342, in _find_and_load_unlocked 207s File "", line 938, in _load_unlocked 207s File "", line 755, in exec_module 207s File "", line 851, in get_code 207s File "", line 951, in get_data 207s KeyboardInterrupt 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.160000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-232879a2-52b2-47ae-8adf-a5d415ff716f.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51785 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37039 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 232879a2-52b2-47ae-8adf-a5d415ff716f, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.970000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd1fd9c7-ab00-4b41-8dab-0e70c309d284 207s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 3.730000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.950000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 232879a2-52b2-47ae-8adf-a5d415ff716f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 232879a2-52b2-47ae-8adf-a5d415ff716f 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 8.630000ms referer=None 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 207s from ipykernel import kernelapp as app 207s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 207s from .connect import * # noqa: F403 207s ^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 207s from subprocess import PIPE, Popen 207s File "", line 1371, in _find_and_load 207s File "", line 1342, in _find_and_load_unlocked 207s File "", line 938, in _load_unlocked 207s File "", line 755, in exec_module 207s File "", line 888, in get_code 207s File "", line 511, in _compile_bytecode 207s KeyboardInterrupt 207s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.580000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc566j0p6/runtime/kernel-ce6553fc-86aa-4bcb-98e7-6645f12ceb2f.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57467 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43735 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: ce6553fc-86aa-4bcb-98e7-6645f12ceb2f, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpc566j0p6/notebooks/foo'} 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 232879a2-52b2-47ae-8adf-a5d415ff716f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 232879a2-52b2-47ae-8adf-a5d415ff716f 207s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 18.060000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.470000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce6553fc-86aa-4bcb-98e7-6645f12ceb2f 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce6553fc-86aa-4bcb-98e7-6645f12ceb2f 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/83cb4b36-4171-4b4d-a13e-079cbfeb1a55', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 207s yielded = self.gen.send(value) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 207s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 207s stopper = ensure_async(km.shutdown_kernel(now, restart)) 207s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 207s return _runner_map[name].run(inner) 207s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 207s return fut.result(None) 207s ~~~~~~~~~~^^^^^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 207s return self.__get_result() 207s ~~~~~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 207s raise self._exception 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 207s from pathlib import Path 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 77, in 207s class PurePath: 207s ...<516 lines>... 207s return True 207s File "/usr/lib/python3.14/pathlib/__init__.py", line 197, in PurePath 207s @property 207s ^^^^^^^^ 207s KeyboardInterrupt 207s ---------------------------- Captured log teardown ----------------------------- 207s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce6553fc-86aa-4bcb-98e7-6645f12ceb2f 207s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 207s _______________________ AsyncSessionAPITest.test_create ________________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/63a6030a-9acd-453a-988b-336d862d5711 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log setup ------------------------------ 207s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpu0t6lmzg/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpu0t6lmzg/etc/jupyter'] for config files 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu0t6lmzg/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu0t6lmzg/config 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu0t6lmzg/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 207s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu0t6lmzg/config 207s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpu0t6lmzg/notebooks 207s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 207s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 207s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 207s WARNING NotebookApp:handlers.py:612 Forbidden 207s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.270000ms referer=None 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-3ac81852-a435-4ae8-8679-f82a742a5727.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39503 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44057 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3ac81852-a435-4ae8-8679-f82a742a5727, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu0t6lmzg/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.440000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/63a6030a-9acd-453a-988b-336d862d5711 (::1) 0.950000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.600000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ac81852-a435-4ae8-8679-f82a742a5727 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ac81852-a435-4ae8-8679-f82a742a5727 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/63a6030a-9acd-453a-988b-336d862d5711 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/63a6030a-9acd-453a-988b-336d862d5711', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s --------------------------- Captured stderr teardown --------------------------- 207s Traceback (most recent call last): 207s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 207s return _run_code(code, main_globals, None, 207s "__main__", mod_spec) 207s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 207s exec(code, run_globals) 207s ~~~~^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 207s from ipykernel import kernelapp as app 207s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 207s from ._version import ( 207s ...<4 lines>... 207s ) 207s File "", line 1371, in _find_and_load 207s File "", line 1316, in _find_and_load_unlocked 207s KeyboardInterrupt 207s _______________ AsyncSessionAPITest.test_create_console_session ________________ 207s 207s @self.addCleanup 207s def cleanup_sessions(): 207s for session in self.sess_api.list().json(): 207s > self.sess_api.delete(session['id']) 207s 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 207s return self._req('DELETE', id) 207s ^^^^^^^^^^^^^^^^^^^^^^^ 207s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 207s response.raise_for_status() 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s self = 207s 207s def raise_for_status(self): 207s """Raises :class:`HTTPError`, if one occurred.""" 207s 207s http_error_msg = "" 207s if isinstance(self.reason, bytes): 207s # We attempt to decode utf-8 first because some servers 207s # choose to localize their reason strings. If the string 207s # isn't utf-8, we fall back to iso-8859-1 for all other 207s # encodings. (See PR #3538) 207s try: 207s reason = self.reason.decode("utf-8") 207s except UnicodeDecodeError: 207s reason = self.reason.decode("iso-8859-1") 207s else: 207s reason = self.reason 207s 207s if 400 <= self.status_code < 500: 207s http_error_msg = ( 207s f"{self.status_code} Client Error: {reason} for url: {self.url}" 207s ) 207s 207s elif 500 <= self.status_code < 600: 207s http_error_msg = ( 207s f"{self.status_code} Server Error: {reason} for url: {self.url}" 207s ) 207s 207s if http_error_msg: 207s > raise HTTPError(http_error_msg, response=self) 207s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/295b2f54-4d18-46d2-9fd4-ab2e57f02095 207s 207s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 207s ------------------------------ Captured log call ------------------------------- 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 207s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-3cdcd25a-dfd7-4f5b-8077-4819291f78a7.json'] 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48833 207s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53327 207s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3cdcd25a-dfd7-4f5b-8077-4819291f78a7, name: python3 207s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu0t6lmzg/notebooks/foo'} 207s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.440000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ac81852-a435-4ae8-8679-f82a742a5727 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ac81852-a435-4ae8-8679-f82a742a5727 207s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63a6030a-9acd-453a-988b-336d862d5711 (::1) 1.400000ms 207s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 207s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3cdcd25a-dfd7-4f5b-8077-4819291f78a7 207s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3cdcd25a-dfd7-4f5b-8077-4819291f78a7 207s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/295b2f54-4d18-46d2-9fd4-ab2e57f02095 (::1) 207s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/295b2f54-4d18-46d2-9fd4-ab2e57f02095', version='HTTP/1.1', remote_ip='::1') 207s Traceback (most recent call last): 207s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 207s result = await result 207s ^^^^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 207s future.result() 207s ~~~~~~~~~~~~~^^ 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 207s yield maybe_future(sm.delete_session(session_id)) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 207s yielded = self.gen.throw(exc) 207s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 207s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 207s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 207s value = future.result() 207s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 207s raise self._exception.with_traceback(self._exception_tb) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 207s result = coro.send(None) 207s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 207s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 207s raise km.ready.exception() # type: ignore[misc] 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 207s await kernel_awaitable 207s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 207s result = await obj 207s ^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 207s raise e 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 207s out = await method(self, *args, **kwargs) 207s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 207s await self._async_finish_shutdown(restart=restart) 207s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 207s await asyncio.wait_for( 207s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 207s ) 207s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 207s async with timeouts.timeout(timeout): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^ 207s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 207s raise RuntimeError("Timeout should be used inside a task") 207s RuntimeError: Timeout should be used inside a task 207s WARNING NotebookApp:handlers.py:612 Unhandled error 207s ERROR NotebookApp:log.py:55 { 207s "Host": "localhost:12341", 207s "Accept": "*/*", 207s "User-Agent": "python-requests/2.32.5" 207s } 207s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/295b2f54-4d18-46d2-9fd4-ab2e57f02095 (::1) 10.610000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 207s gc.collect() 207s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 208s 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 208s from glob import _StringGlobber, _no_recurse_symlinks 208s File "/usr/lib/python3.14/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.14/re/__init__.py", line 125, in 208s import enum 208s File "", line 1371, in _find_and_load 208s File "", line 1342, in _find_and_load_unlocked 208s File "", line 938, in _load_unlocked 208s File "", line 755, in exec_module 208s File "", line 888, in get_code 208s File "", line 509, in _compile_bytecode 208s KeyboardInterrupt 208s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6baa0f1b-0c53-4005-9145-75010737c713 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-6207ece2-43a9-42a8-8321-5905dc65a6d1.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53739 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58081 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6207ece2-43a9-42a8-8321-5905dc65a6d1, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu0t6lmzg/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.970000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.010000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3cdcd25a-dfd7-4f5b-8077-4819291f78a7 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3cdcd25a-dfd7-4f5b-8077-4819291f78a7 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/295b2f54-4d18-46d2-9fd4-ab2e57f02095 (::1) 1.870000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6207ece2-43a9-42a8-8321-5905dc65a6d1 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6207ece2-43a9-42a8-8321-5905dc65a6d1 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6baa0f1b-0c53-4005-9145-75010737c713 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6baa0f1b-0c53-4005-9145-75010737c713', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 208s from glob import _StringGlobber, _no_recurse_symlinks 208s File "/usr/lib/python3.14/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.14/re/__init__.py", line 125, in 208s import enum 208s KeyboardInterrupt 208s _________________ AsyncSessionAPITest.test_create_file_session _________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b41af84d-0c8a-4437-8137-afb930302a73 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50609 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37351 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu0t6lmzg/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.740000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6207ece2-43a9-42a8-8321-5905dc65a6d1 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6207ece2-43a9-42a8-8321-5905dc65a6d1 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6baa0f1b-0c53-4005-9145-75010737c713 (::1) 1.030000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b41af84d-0c8a-4437-8137-afb930302a73 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b41af84d-0c8a-4437-8137-afb930302a73', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 208s from glob import _StringGlobber, _no_recurse_symlinks 208s File "/usr/lib/python3.14/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.14/re/__init__.py", line 126, in 208s from . import _compiler, _parser 208s File "", line 1371, in _find_and_load 208s File "", line 1333, in _find_and_load_unlocked 208s File "", line 1261, in _find_spec 208s File "", line 1231, in __exit__ 208s KeyboardInterrupt 208s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 208s 208s self = 208s 208s def test_create_with_kernel_id(self): 208s # create a new kernel 208s r = self.request('POST', 'api/kernels') 208s r.raise_for_status() 208s kernel = r.json() 208s 208s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 208s self.assertEqual(resp.status_code, 201) 208s newsession = resp.json() 208s self.assertIn('id', newsession) 208s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 208s self.assertEqual(newsession['kernel']['id'], kernel['id']) 208s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 208s 208s sessions = self.sess_api.list().json() 208s > self.assertEqual(sessions, [newsession]) 208s E AssertionError: Lists differ: [{'id': 'b41af84d-0c8a-4437-8137-afb930302a73', 'p[553 chars]ne}}] != [{'id': 'c132391f-c272-4328-8c24-d61addf0ac84', 'p[279 chars]ne}}] 208s E 208s E First differing element 0: 208s E {'id': 'b41af84d-0c8a-4437-8137-afb930302a73', 'p[218 chars]: 0}} 208s E {'id': 'c132391f-c272-4328-8c24-d61addf0ac84', 'p[278 chars]one}} 208s E 208s E First list contains 1 additional elements. 208s E First extra element 1: 208s E {'id': 'c132391f-c272-4328-8c24-d61addf0ac84', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '23c8a6a5-8cde-4601-aa21-879c4fb9d68f', 'name': 'python3', 'last_activity': '2026-01-22T18:19:35.949973Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 208s E 208s E Diff is 830 characters long. Set self.maxDiff to None to see it. 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-23c8a6a5-8cde-4601-aa21-879c4fb9d68f.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57261 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38089 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.200000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.040000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b41af84d-0c8a-4437-8137-afb930302a73 (::1) 2.500000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 6.680000ms referer=None 208s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ---------------------------- Captured stderr setup ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 208s import json 208s File "/usr/lib/python3.14/json/__init__.py", line 107, in 208s from .encoder import JSONEncoder 208s File "/usr/lib/python3.14/json/encoder.py", line 18, in 208s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 208s File "/usr/lib/python3.14/re/__init__.py", line 287, in compile 208s def compile(pattern, flags=0): 208s 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.500000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-ec3e9939-82a2-4c52-a935-c4a2a1395097.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37459 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35143 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec3e9939-82a2-4c52-a935-c4a2a1395097, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.190000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 2.600000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec3e9939-82a2-4c52-a935-c4a2a1395097 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec3e9939-82a2-4c52-a935-c4a2a1395097 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 7.600000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 208s from glob import _StringGlobber, _no_recurse_symlinks 208s File "/usr/lib/python3.14/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.14/re/__init__.py", line 126, in 208s from . import _compiler, _parser 208s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 208s from ._casefix import _EXTRA_CASES 208s KeyboardInterrupt 208s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.700000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu0t6lmzg/runtime/kernel-ae730730-fa23-486f-b2d0-3edb31ec7f1f.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52187 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41585 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae730730-fa23-486f-b2d0-3edb31ec7f1f, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpu0t6lmzg/notebooks/foo'} 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec3e9939-82a2-4c52-a935-c4a2a1395097 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec3e9939-82a2-4c52-a935-c4a2a1395097 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 17.530000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.520000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.720000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae730730-fa23-486f-b2d0-3edb31ec7f1f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae730730-fa23-486f-b2d0-3edb31ec7f1f 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c132391f-c272-4328-8c24-d61addf0ac84', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 208s from glob import _StringGlobber, _no_recurse_symlinks 208s File "/usr/lib/python3.14/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.14/re/__init__.py", line 143, in 208s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 208s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/enum.py", line 1777, in convert_class 208s for name, obj in cls.__dict__.items(): 208s ~~~~~~~~~~~~~~~~~~^^ 208s KeyboardInterrupt 208s ---------------------------- Captured log teardown ----------------------------- 208s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23c8a6a5-8cde-4601-aa21-879c4fb9d68f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae730730-fa23-486f-b2d0-3edb31ec7f1f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ac81852-a435-4ae8-8679-f82a742a5727 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3cdcd25a-dfd7-4f5b-8077-4819291f78a7 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 216c7cde-2b7d-43dc-b5bb-c3f7c5eea5df 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec3e9939-82a2-4c52-a935-c4a2a1395097 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6207ece2-43a9-42a8-8321-5905dc65a6d1 208s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 208s =============================== warnings summary =============================== 208s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 208s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 208s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 208s return LooseVersion(v) >= LooseVersion(check) 208s 208s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 208s services/kernels/tests/test_kernels_api.py: 65 warnings 208s services/sessions/tests/test_sessions_api.py: 88 warnings 208s /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). 208s dt = unaware(*args, **kwargs) 208s 208s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 208s /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 208s pytestmark = pytest.mark.integration_tests 208s 208s services/kernels/tests/test_kernels_api.py: 6 warnings 208s services/sessions/tests/test_sessions_api.py: 6 warnings 208s /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 208s policy = events.get_event_loop_policy() 208s 208s services/kernels/tests/test_kernels_api.py: 24 warnings 208s services/sessions/tests/test_sessions_api.py: 19 warnings 208s /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 208s loop = events.get_event_loop_policy().get_event_loop() 208s 208s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 208s loop.make_current() 208s 208s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 208s =========================== short test summary info ============================ 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 208s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 208s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 208s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 208s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 208s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 5.83s ========== 208s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 208s *** 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 211s ============================= test session starts ============================== 211s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 211s rootdir: /tmp/autopkgtest.UeEqtc/autopkgtest_tmp 211s plugins: typeguard-4.4.4 211s collected 330 items / 307 deselected / 23 selected 211s run-last-failure: rerun previous 23 failures 211s 213s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 214s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 214s 214s ==================================== ERRORS ==================================== 214s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 3, in 214s import contextlib 214s File "/usr/lib/python3.14/contextlib.py", line 6, in 214s from collections import deque 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 888, in get_code 214s File "", line 511, in _compile_bytecode 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-80276ba6-3a95-438a-81a2-98bde4ea0e44.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56795 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57771 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 80276ba6-3a95-438a-81a2-98bde4ea0e44, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.820000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-a9fbed75-6744-4d9b-9b29-16e6424fcfed.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48833 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59113 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9fbed75-6744-4d9b-9b29-16e6424fcfed, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9fbed75-6744-4d9b-9b29-16e6424fcfed 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed/interrupt (::1) 2.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed/restart (::1) 9.160000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 (::1) 10.030000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 214s import jupyter_client 214s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 214s from .asynchronous import AsyncKernelClient 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 214s from .client import AsyncKernelClient # noqa 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 214s import zmq.asyncio 214s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 214s from zmq import sugar 214s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 214s from zmq.sugar import context, frame, poll, socket, tracker, version 214s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 214s from .socket import Socket, SyncSocket 214s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 30, in 214s from zmq.utils import jsonapi 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 876, in get_code 214s File "", line 481, in _validate_timestamp_pyc 214s File "", line 89, in _unpack_uint32 214s KeyboardInterrupt 214s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Fatal Python error: init_import_site: Failed to import the site module 214s Python runtime state: initialized 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/site.py", line 741, in 214s main() 214s File "/usr/lib/python3.14/site.py", line 728, in main 214s known_paths = addsitepackages(known_paths) 214s File "/usr/lib/python3.14/site.py", line 447, in addsitepackages 214s addsitedir(sitedir, known_paths) 214s File "/usr/lib/python3.14/site.py", line 260, in addsitedir 214s addpackage(sitedir, name, known_paths) 214s File "/usr/lib/python3.14/site.py", line 219, in addpackage 214s exec(line) 214s File "", line 1, in 214s File "", line 1371, in _find_and_load 214s File "", line 1333, in _find_and_load_unlocked 214s File "", line 1267, in _find_spec 214s File "", line 1292, in find_spec 214s File "", line 1266, in _get_spec 214s File "", line 1385, in find_spec 214s File "", line 1354, in _get_spec 214s File "", line 596, in spec_from_file_location 214s File "", line 602, in __init__ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-ebec5839-f07c-48b4-b1c5-5223f22f4f98.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38649 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45055 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: ebec5839-f07c-48b4-b1c5-5223f22f4f98, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.330000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.740000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-7dd84162-7925-4028-ae12-fed8735c6552.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40183 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56391 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7dd84162-7925-4028-ae12-fed8735c6552, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.610000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.940000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7dd84162-7925-4028-ae12-fed8735c6552 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552/interrupt (::1) 0.920000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 214s result = coro.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 214s yield self # This tells Task to wait for completion. 214s ^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552/restart (::1) 7.890000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 214s import jupyter_client 214s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 214s from .asynchronous import AsyncKernelClient 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 214s from .client import AsyncKernelClient # noqa 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 214s import zmq.asyncio 214s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 214s from zmq import backend 214s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 214s _ns = select_backend(first) 214s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 214s mod = import_module(name) 214s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 214s return _bootstrap._gcd_import(name[level:], package, level) 214s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 214s from . import _zmq 214s File "", line 648, in parent 214s KeyboardInterrupt 214s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-cddf1f9c-a55a-4f4e-8bce-3a349b2990fc.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43367 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55011 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: cddf1f9c-a55a-4f4e-8bce-3a349b2990fc, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.730000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.000000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.460000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/876aa854-8f20-42f1-b08f-fdabb5576dc8 (::1) 1.160000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-1f61a2bf-379e-4c77-906c-ba80034e69b0.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50557 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34599 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f61a2bf-379e-4c77-906c-ba80034e69b0, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.100000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.960000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/61a33510-32b6-4492-8a38-934c1622d2fc (::1) 2.450000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f61a2bf-379e-4c77-906c-ba80034e69b0 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f61a2bf-379e-4c77-906c-ba80034e69b0 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s =================================== FAILURES =================================== 214s ______________________ KernelAPITest.test_default_kernel _______________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4a3d1ca3-fd01-4e92-ba3f-487aeab19299 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpnu7bg15v/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpnu7bg15v/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnu7bg15v/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnu7bg15v/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnu7bg15v/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnu7bg15v/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpnu7bg15v/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 2.110000ms referer=None 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-4a3d1ca3-fd01-4e92-ba3f-487aeab19299.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50115 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47181 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a3d1ca3-fd01-4e92-ba3f-487aeab19299, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.760000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.070000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a3d1ca3-fd01-4e92-ba3f-487aeab19299 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a3d1ca3-fd01-4e92-ba3f-487aeab19299 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4a3d1ca3-fd01-4e92-ba3f-487aeab19299 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4a3d1ca3-fd01-4e92-ba3f-487aeab19299', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.14/re/__init__.py", line 125, in 214s import enum 214s File "/usr/lib/python3.14/enum.py", line 1631, in 214s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 214s ...<2 lines>... 214s """ 214s File "/usr/lib/python3.14/enum.py", line 505, in __new__ 214s _order_ = classdict.pop('_order_', None) 214s KeyboardInterrupt 214s ______________________ KernelAPITest.test_kernel_handler _______________________ 214s 214s self = 214s 214s def test_kernel_handler(self): 214s # GET kernel with given id 214s kid = self.kern_api.start().json()['id'] 214s r = self.kern_api.get(kid) 214s kern1 = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kern1, dict) 214s self.assertIn('id', kern1) 214s self.assertEqual(kern1['id'], kid) 214s 214s # Request a bad kernel id and check that a JSON 214s # message is returned! 214s bad_id = '111-111-111-111-111' 214s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 214s self.kern_api.get(bad_id) 214s 214s # DELETE kernel with id 214s > r = self.kern_api.shutdown(kid) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-eb1d3493-2a65-4be2-8581-3da27cf3722b.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50159 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40603 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: eb1d3493-2a65-4be2-8581-3da27cf3722b, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.320000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b (::1) 0.840000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.930000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb1d3493-2a65-4be2-8581-3da27cf3722b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb1d3493-2a65-4be2-8581-3da27cf3722b 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b (::1) 8.170000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a3d1ca3-fd01-4e92-ba3f-487aeab19299 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a3d1ca3-fd01-4e92-ba3f-487aeab19299 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4a3d1ca3-fd01-4e92-ba3f-487aeab19299 (::1) 2.490000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb1d3493-2a65-4be2-8581-3da27cf3722b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb1d3493-2a65-4be2-8581-3da27cf3722b 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eb1d3493-2a65-4be2-8581-3da27cf3722b (::1) 3.150000ms 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.14/re/__init__.py", line 381, in 214s import copyreg 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 888, in get_code 214s File "", line 511, in _compile_bytecode 214s KeyboardInterrupt 214s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 214s 214s self = 214s 214s def test_main_kernel_handler(self): 214s # POST request 214s r = self.kern_api.start() 214s kern1 = r.json() 214s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 214s self.assertEqual(r.status_code, 201) 214s self.assertIsInstance(kern1, dict) 214s 214s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 214s expected_csp = '; '.join([ 214s "frame-ancestors 'self'", 214s 'report-uri ' + report_uri, 214s "default-src 'none'" 214s ]) 214s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 214s 214s # GET request 214s r = self.kern_api.list() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(r.json(), list) 214s self.assertEqual(r.json()[0]['id'], kern1['id']) 214s self.assertEqual(r.json()[0]['name'], kern1['name']) 214s 214s # create another kernel and check that they both are added to the 214s # list of kernels from a GET request 214s kern2 = self.kern_api.start().json() 214s assert isinstance(kern2, dict) 214s r = self.kern_api.list() 214s kernels = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kernels, list) 214s self.assertEqual(len(kernels), 2) 214s 214s # Interrupt a kernel 214s r = self.kern_api.interrupt(kern2['id']) 214s self.assertEqual(r.status_code, 204) 214s 214s # Restart a kernel 214s > r = self.kern_api.restart(kern2['id']) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 214s return self._req('POST', url_path_join(id, 'restart')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed/restart 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 3, in 214s import contextlib 214s File "/usr/lib/python3.14/contextlib.py", line 6, in 214s from collections import deque 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 888, in get_code 214s File "", line 511, in _compile_bytecode 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-80276ba6-3a95-438a-81a2-98bde4ea0e44.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56795 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57771 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 80276ba6-3a95-438a-81a2-98bde4ea0e44, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.820000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnu7bg15v/runtime/kernel-a9fbed75-6744-4d9b-9b29-16e6424fcfed.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48833 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59113 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9fbed75-6744-4d9b-9b29-16e6424fcfed, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9fbed75-6744-4d9b-9b29-16e6424fcfed 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed/interrupt (::1) 2.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed/restart (::1) 9.160000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 214s yielded = ctx_run(next, result) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 (::1) 10.030000ms referer=None 214s ________________________ KernelAPITest.test_no_kernels _________________________ 214s 214s self = 214s 214s def test_no_kernels(self): 214s """Make sure there are no kernels running at the start""" 214s kernels = self.kern_api.list().json() 214s > self.assertEqual(kernels, []) 214s E AssertionError: Lists differ: [{'id': '80276ba6-3a95-438a-81a2-98bde4ea0[281 chars]: 0}] != [] 214s E 214s E First list contains 2 additional elements. 214s E First extra element 0: 214s E {'id': '80276ba6-3a95-438a-81a2-98bde4ea0e44', 'name': 'python3', 'last_activity': '2026-01-22T18:19:40.673229Z', 'execution_state': 'starting', 'connections': 0} 214s E 214s E + [] 214s E - [{'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '80276ba6-3a95-438a-81a2-98bde4ea0e44', 214s E - 'last_activity': '2026-01-22T18:19:40.673229Z', 214s E - 'name': 'python3'}, 214s E - {'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': 'a9fbed75-6744-4d9b-9b29-16e6424fcfed', 214s E - 'last_activity': '2026-01-22T18:19:40.696398Z', 214s E - 'name': 'python3'}] 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.970000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 80276ba6-3a95-438a-81a2-98bde4ea0e44 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/80276ba6-3a95-438a-81a2-98bde4ea0e44 (::1) 1.200000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9fbed75-6744-4d9b-9b29-16e6424fcfed 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9fbed75-6744-4d9b-9b29-16e6424fcfed 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a9fbed75-6744-4d9b-9b29-16e6424fcfed (::1) 1.340000ms 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s _____________________ AsyncKernelAPITest.test_connections ______________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpz0vozh1n/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpz0vozh1n/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpz0vozh1n/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpz0vozh1n/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpz0vozh1n/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpz0vozh1n/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpz0vozh1n/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-4a48fb02-1947-4a59-b8c3-edce4d2fb00d.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50705 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46663 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a48fb02-1947-4a59-b8c3-edce4d2fb00d, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.470000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 0.970000ms 214s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d/channels 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 214s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37627 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 4a48fb02-1947-4a59-b8c3-edce4d2fb00d: status (starting) 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 4a48fb02-1947-4a59-b8c3-edce4d2fb00d: status (busy) 214s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.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/'}]} 214s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 4a48fb02-1947-4a59-b8c3-edce4d2fb00d) to 5.4 (client). 214s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d/channels (::1) 688.430000ms 214s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d/channels 214s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46663 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37627 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50705 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49279 214s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 214s Setting websocket_ping_timeout=30000 214s DEBUG NotebookApp:kernelmanager.py:423 activity on 4a48fb02-1947-4a59-b8c3-edce4d2fb00d: status (idle) 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 0.840000ms 214s DEBUG NotebookApp:handlers.py:579 Websocket closed 4a48fb02-1947-4a59-b8c3-edce4d2fb00d:34714c8d-daec74749b29cabfdf249671 214s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 4a48fb02-1947-4a59-b8c3-edce4d2fb00d:34714c8d-daec74749b29cabfdf249671 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 0.780000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 1.020000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 7.610000ms referer=None 214s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 214s 214s self = 214s 214s def tearDown(self): 214s for k in self.kern_api.list().json(): 214s > self.kern_api.shutdown(k['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/478e066c-a10c-49fc-b4cd-1220c1e66f06 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-478e066c-a10c-49fc-b4cd-1220c1e66f06.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32907 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54169 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 478e066c-a10c-49fc-b4cd-1220c1e66f06, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.250000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.530000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4a48fb02-1947-4a59-b8c3-edce4d2fb00d (::1) 1.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 478e066c-a10c-49fc-b4cd-1220c1e66f06 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 478e066c-a10c-49fc-b4cd-1220c1e66f06 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/478e066c-a10c-49fc-b4cd-1220c1e66f06 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/478e066c-a10c-49fc-b4cd-1220c1e66f06', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 214s 214s self = 214s 214s def test_kernel_handler(self): 214s # GET kernel with given id 214s kid = self.kern_api.start().json()['id'] 214s r = self.kern_api.get(kid) 214s kern1 = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kern1, dict) 214s self.assertIn('id', kern1) 214s self.assertEqual(kern1['id'], kid) 214s 214s # Request a bad kernel id and check that a JSON 214s # message is returned! 214s bad_id = '111-111-111-111-111' 214s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 214s self.kern_api.get(bad_id) 214s 214s # DELETE kernel with id 214s > r = self.kern_api.shutdown(kid) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "", line 1368, in _find_and_load 214s File "", line 421, in __enter__ 214s File "", line 311, in acquire 214s File "", line 158, in __init__ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-c073b473-a945-46cc-baa6-e2eec33c8a9b.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35561 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33087 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: c073b473-a945-46cc-baa6-e2eec33c8a9b, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.930000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b (::1) 2.320000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 214s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.970000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c073b473-a945-46cc-baa6-e2eec33c8a9b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c073b473-a945-46cc-baa6-e2eec33c8a9b 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b (::1) 12.620000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 478e066c-a10c-49fc-b4cd-1220c1e66f06 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 478e066c-a10c-49fc-b4cd-1220c1e66f06 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/478e066c-a10c-49fc-b4cd-1220c1e66f06 (::1) 0.890000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c073b473-a945-46cc-baa6-e2eec33c8a9b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c073b473-a945-46cc-baa6-e2eec33c8a9b 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c073b473-a945-46cc-baa6-e2eec33c8a9b (::1) 3.020000ms 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 5, in 214s import re 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 851, in get_code 214s File "", line 950, in get_data 214s KeyboardInterrupt 214s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 214s 214s self = 214s 214s def test_main_kernel_handler(self): 214s # POST request 214s r = self.kern_api.start() 214s kern1 = r.json() 214s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 214s self.assertEqual(r.status_code, 201) 214s self.assertIsInstance(kern1, dict) 214s 214s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 214s expected_csp = '; '.join([ 214s "frame-ancestors 'self'", 214s 'report-uri ' + report_uri, 214s "default-src 'none'" 214s ]) 214s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 214s 214s # GET request 214s r = self.kern_api.list() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(r.json(), list) 214s self.assertEqual(r.json()[0]['id'], kern1['id']) 214s self.assertEqual(r.json()[0]['name'], kern1['name']) 214s 214s # create another kernel and check that they both are added to the 214s # list of kernels from a GET request 214s kern2 = self.kern_api.start().json() 214s assert isinstance(kern2, dict) 214s r = self.kern_api.list() 214s kernels = r.json() 214s self.assertEqual(r.status_code, 200) 214s assert isinstance(kernels, list) 214s self.assertEqual(len(kernels), 2) 214s 214s # Interrupt a kernel 214s r = self.kern_api.interrupt(kern2['id']) 214s self.assertEqual(r.status_code, 204) 214s 214s # Restart a kernel 214s > r = self.kern_api.restart(kern2['id']) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 214s return self._req('POST', url_path_join(id, 'restart')) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552/restart 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ----------------------------- Captured stderr call ----------------------------- 214s Fatal Python error: init_import_site: Failed to import the site module 214s Python runtime state: initialized 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/site.py", line 741, in 214s main() 214s File "/usr/lib/python3.14/site.py", line 728, in main 214s known_paths = addsitepackages(known_paths) 214s File "/usr/lib/python3.14/site.py", line 447, in addsitepackages 214s addsitedir(sitedir, known_paths) 214s File "/usr/lib/python3.14/site.py", line 260, in addsitedir 214s addpackage(sitedir, name, known_paths) 214s File "/usr/lib/python3.14/site.py", line 219, in addpackage 214s exec(line) 214s File "", line 1, in 214s File "", line 1371, in _find_and_load 214s File "", line 1333, in _find_and_load_unlocked 214s File "", line 1267, in _find_spec 214s File "", line 1292, in find_spec 214s File "", line 1266, in _get_spec 214s File "", line 1385, in find_spec 214s File "", line 1354, in _get_spec 214s File "", line 596, in spec_from_file_location 214s File "", line 602, in __init__ 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-ebec5839-f07c-48b4-b1c5-5223f22f4f98.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38649 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45055 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: ebec5839-f07c-48b4-b1c5-5223f22f4f98, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.330000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.740000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpz0vozh1n/runtime/kernel-7dd84162-7925-4028-ae12-fed8735c6552.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40183 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56391 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7dd84162-7925-4028-ae12-fed8735c6552, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.610000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.940000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7dd84162-7925-4028-ae12-fed8735c6552 214s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552/interrupt (::1) 0.920000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 214s yield maybe_future(km.restart_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 214s result = coro.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 214s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 214s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 214s yield self # This tells Task to wait for completion. 214s ^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 214s await ensure_async(kernel.restart_kernel(now=now)) 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 214s await self._async_shutdown_kernel(now=now, restart=True) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552/restart (::1) 7.890000ms referer=None 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 214s yield maybe_future(km.shutdown_kernel(kernel_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 214s 214s self = 214s 214s def test_no_kernels(self): 214s """Make sure there are no kernels running at the start""" 214s kernels = self.kern_api.list().json() 214s > self.assertEqual(kernels, []) 214s E AssertionError: Lists differ: [{'id': 'ebec5839-f07c-48b4-b1c5-5223f22f4[281 chars]: 0}] != [] 214s E 214s E First list contains 2 additional elements. 214s E First extra element 0: 214s E {'id': 'ebec5839-f07c-48b4-b1c5-5223f22f4f98', 'name': 'python3', 'last_activity': '2026-01-22T18:19:41.834352Z', 'execution_state': 'starting', 'connections': 0} 214s E 214s E + [] 214s E - [{'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': 'ebec5839-f07c-48b4-b1c5-5223f22f4f98', 214s E - 'last_activity': '2026-01-22T18:19:41.834352Z', 214s E - 'name': 'python3'}, 214s E - {'connections': 0, 214s E - 'execution_state': 'starting', 214s E - 'id': '7dd84162-7925-4028-ae12-fed8735c6552', 214s E - 'last_activity': '2026-01-22T18:19:41.870616Z', 214s E - 'name': 'python3'}] 214s 214s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ebec5839-f07c-48b4-b1c5-5223f22f4f98 (::1) 2.150000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dd84162-7925-4028-ae12-fed8735c6552 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dd84162-7925-4028-ae12-fed8735c6552 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7dd84162-7925-4028-ae12-fed8735c6552 (::1) 1.040000ms 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ebec5839-f07c-48b4-b1c5-5223f22f4f98 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c073b473-a945-46cc-baa6-e2eec33c8a9b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a48fb02-1947-4a59-b8c3-edce4d2fb00d 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 478e066c-a10c-49fc-b4cd-1220c1e66f06 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s __________________________ SessionAPITest.test_create __________________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgx81m6ik/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgx81m6ik/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgx81m6ik/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgx81m6ik/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgx81m6ik/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgx81m6ik/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgx81m6ik/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35051 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57095 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgx81m6ik/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.590000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42 (::1) 0.880000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.550000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42 (::1) 7.700000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 524, in 214s class _StringGlobber(_GlobberBase): 214s ...<11 lines>... 214s return ((entry, entry.name, entry.path) for entry in entries) 214s File "/usr/lib/python3.14/glob.py", line 527, in _StringGlobber 214s lexists = staticmethod(os.path.lexists) 214s KeyboardInterrupt 214s __________________ SessionAPITest.test_create_console_session __________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3cb69751-5366-4864-8339-664759ee00af 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-1af7dd36-6aaa-469a-a905-da1afd0cd104.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48651 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57753 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1af7dd36-6aaa-469a-a905-da1afd0cd104, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgx81m6ik/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.680000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.480000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3c7b7d15-139b-4dc3-bb0d-4da0a81d37c2 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0e1c4693-96d4-4e8a-803b-bd753c55ee42 (::1) 1.410000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1af7dd36-6aaa-469a-a905-da1afd0cd104 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af7dd36-6aaa-469a-a905-da1afd0cd104 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3cb69751-5366-4864-8339-664759ee00af (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3cb69751-5366-4864-8339-664759ee00af', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 6, in 214s import fnmatch 214s File "/usr/lib/python3.14/fnmatch.py", line 42, in 214s @functools.lru_cache(maxsize=32768, typed=True) 214s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/functools.py", line 553, in lru_cache 214s def lru_cache(maxsize=128, typed=False): 214s 214s KeyboardInterrupt 214s ____________________ SessionAPITest.test_create_deprecated _____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d4560b41-ae2b-4606-a7da-99489927e8dd 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-2e44501e-8683-4779-95b6-4b0347cab354.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52561 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59271 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2e44501e-8683-4779-95b6-4b0347cab354, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgx81m6ik/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.750000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.650000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1af7dd36-6aaa-469a-a905-da1afd0cd104 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af7dd36-6aaa-469a-a905-da1afd0cd104 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3cb69751-5366-4864-8339-664759ee00af (::1) 2.630000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2e44501e-8683-4779-95b6-4b0347cab354 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2e44501e-8683-4779-95b6-4b0347cab354 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d4560b41-ae2b-4606-a7da-99489927e8dd (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d4560b41-ae2b-4606-a7da-99489927e8dd', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.14/re/__init__.py", line 126, in 214s from . import _compiler, _parser 214s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 214s from . import _parser 214s File "/usr/lib/python3.14/re/_parser.py", line 15, in 214s from ._constants import * 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 851, in get_code 214s File "", line 951, in get_data 214s KeyboardInterrupt 214s ___________________ SessionAPITest.test_create_file_session ____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/876aa854-8f20-42f1-b08f-fdabb5576dc8 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-4e5c6772-81c4-48b2-ae8e-0c6e2f2da485.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46351 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43397 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgx81m6ik/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.640000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.580000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2e44501e-8683-4779-95b6-4b0347cab354 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2e44501e-8683-4779-95b6-4b0347cab354 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d4560b41-ae2b-4606-a7da-99489927e8dd (::1) 1.140000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/876aa854-8f20-42f1-b08f-fdabb5576dc8 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/876aa854-8f20-42f1-b08f-fdabb5576dc8', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 214s from pathlib import Path 214s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 214s from glob import _StringGlobber, _no_recurse_symlinks 214s File "/usr/lib/python3.14/glob.py", line 5, in 214s import re 214s File "/usr/lib/python3.14/re/__init__.py", line 126, in 214s from . import _compiler, _parser 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 914, in _load_unlocked 214s KeyboardInterrupt 214s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 214s 214s self = 214s 214s def test_create_with_kernel_id(self): 214s # create a new kernel 214s r = self.request('POST', 'api/kernels') 214s r.raise_for_status() 214s kernel = r.json() 214s 214s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 214s self.assertEqual(resp.status_code, 201) 214s newsession = resp.json() 214s self.assertIn('id', newsession) 214s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 214s self.assertEqual(newsession['kernel']['id'], kernel['id']) 214s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 214s 214s sessions = self.sess_api.list().json() 214s > self.assertEqual(sessions, [newsession]) 214s E AssertionError: Lists differ: [{'id': '876aa854-8f20-42f1-b08f-fdabb5576dc8', 'p[553 chars]ne}}] != [{'id': '9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', 'p[279 chars]ne}}] 214s E 214s E First differing element 0: 214s E {'id': '876aa854-8f20-42f1-b08f-fdabb5576dc8', 'p[218 chars]: 0}} 214s E {'id': '9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', 'p[278 chars]one}} 214s E 214s E First list contains 1 additional elements. 214s E First extra element 1: 214s E {'id': '9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'cddf1f9c-a55a-4f4e-8bce-3a349b2990fc', 'name': 'python3', 'last_activity': '2026-01-22T18:19:42.379215Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 214s E 214s E Diff is 830 characters long. Set self.maxDiff to None to see it. 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-cddf1f9c-a55a-4f4e-8bce-3a349b2990fc.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43367 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55011 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: cddf1f9c-a55a-4f4e-8bce-3a349b2990fc, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.730000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.000000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.460000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e5c6772-81c4-48b2-ae8e-0c6e2f2da485 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/876aa854-8f20-42f1-b08f-fdabb5576dc8 (::1) 1.160000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ---------------------------- Captured stderr setup ----------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 214s from subprocess import PIPE, Popen 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 888, in get_code 214s File "", line 511, in _compile_bytecode 214s KeyboardInterrupt 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.660000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-af04481a-00dd-450c-afc6-87c5b286bc82.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55905 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47937 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: af04481a-00dd-450c-afc6-87c5b286bc82, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.450000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cddf1f9c-a55a-4f4e-8bce-3a349b2990fc 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 2.070000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.370000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for af04481a-00dd-450c-afc6-87c5b286bc82 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af04481a-00dd-450c-afc6-87c5b286bc82 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 8.320000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 214s import json 214s File "/usr/lib/python3.14/json/__init__.py", line 107, in 214s from .encoder import JSONEncoder 214s File "", line 1371, in _find_and_load 214s File "", line 1342, in _find_and_load_unlocked 214s File "", line 938, in _load_unlocked 214s File "", line 755, in exec_module 214s File "", line 888, in get_code 214s File "", line 511, in _compile_bytecode 214s KeyboardInterrupt 214s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.660000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgx81m6ik/runtime/kernel-b1c8864f-1fc2-4359-9a95-100d514e2c2f.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52655 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41741 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1c8864f-1fc2-4359-9a95-100d514e2c2f, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgx81m6ik/notebooks/foo'} 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for af04481a-00dd-450c-afc6-87c5b286bc82 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af04481a-00dd-450c-afc6-87c5b286bc82 214s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 20.500000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.490000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1c8864f-1fc2-4359-9a95-100d514e2c2f 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1c8864f-1fc2-4359-9a95-100d514e2c2f 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 214s yielded = self.gen.send(value) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 214s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 214s stopper = ensure_async(km.shutdown_kernel(now, restart)) 214s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 214s return _runner_map[name].run(inner) 214s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 214s return fut.result(None) 214s ~~~~~~~~~~^^^^^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 214s return self.__get_result() 214s ~~~~~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 214s raise self._exception 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9fb4e1dc-dc34-47cb-a815-feff16f5c0cc (::1) 7.930000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 214s from ._version import ( 214s ...<4 lines>... 214s ) 214s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 214s match = re.match(pattern, __version__) 214s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 214s return _compile(pattern, flags).match(string) 214s ~~~~~~~~^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 214s p = _compiler.compile(pattern, flags) 214s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 214s code = _code(p, flags) 214s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 214s _compile(code, p.data, flags) 214s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 214s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 214s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/re/_compiler.py", line 116, in _compile 214s _compile(code, av[2], flags) 214s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/re/_compiler.py", line 103, in _compile 214s _compile_charset(charset, flags, code) 214s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/re/_compiler.py", line 221, in _compile_charset 214s def _compile_charset(charset, flags, code): 214s 214s KeyboardInterrupt 214s ---------------------------- Captured log teardown ----------------------------- 214s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1c8864f-1fc2-4359-9a95-100d514e2c2f 214s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 214s _______________________ AsyncSessionAPITest.test_create ________________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log setup ------------------------------ 214s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp6raiugl6/config', '/tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp6raiugl6/etc/jupyter'] for config files 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6raiugl6/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6raiugl6/config 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6raiugl6/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.UeEqtc/autopkgtest_tmp/home/.local/etc/jupyter 214s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6raiugl6/config 214s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp6raiugl6/notebooks 214s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 214s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 214s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 214s WARNING NotebookApp:handlers.py:612 Forbidden 214s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.030000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-e7a93bd2-8c05-4d90-b77c-40e84181ae4b.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33583 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37697 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7a93bd2-8c05-4d90-b77c-40e84181ae4b, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp6raiugl6/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.710000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9 (::1) 2.400000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7a93bd2-8c05-4d90-b77c-40e84181ae4b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7a93bd2-8c05-4d90-b77c-40e84181ae4b 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error 214s ERROR NotebookApp:log.py:55 { 214s "Host": "localhost:12341", 214s "Accept": "*/*", 214s "User-Agent": "python-requests/2.32.5" 214s } 214s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9 (::1) 6.850000ms referer=None 214s --------------------------- Captured stderr teardown --------------------------- 214s Traceback (most recent call last): 214s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 214s return _run_code(code, main_globals, None, 214s "__main__", mod_spec) 214s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 214s exec(code, run_globals) 214s ~~~~^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 214s from ipykernel import kernelapp as app 214s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 214s from .connect import * # noqa: F403 214s ^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 214s import json 214s File "", line 1360, in _find_and_load 214s KeyboardInterrupt 214s _______________ AsyncSessionAPITest.test_create_console_session ________________ 214s 214s @self.addCleanup 214s def cleanup_sessions(): 214s for session in self.sess_api.list().json(): 214s > self.sess_api.delete(session['id']) 214s 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 214s return self._req('DELETE', id) 214s ^^^^^^^^^^^^^^^^^^^^^^^ 214s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 214s response.raise_for_status() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def raise_for_status(self): 214s """Raises :class:`HTTPError`, if one occurred.""" 214s 214s http_error_msg = "" 214s if isinstance(self.reason, bytes): 214s # We attempt to decode utf-8 first because some servers 214s # choose to localize their reason strings. If the string 214s # isn't utf-8, we fall back to iso-8859-1 for all other 214s # encodings. (See PR #3538) 214s try: 214s reason = self.reason.decode("utf-8") 214s except UnicodeDecodeError: 214s reason = self.reason.decode("iso-8859-1") 214s else: 214s reason = self.reason 214s 214s if 400 <= self.status_code < 500: 214s http_error_msg = ( 214s f"{self.status_code} Client Error: {reason} for url: {self.url}" 214s ) 214s 214s elif 500 <= self.status_code < 600: 214s http_error_msg = ( 214s f"{self.status_code} Server Error: {reason} for url: {self.url}" 214s ) 214s 214s if http_error_msg: 214s > raise HTTPError(http_error_msg, response=self) 214s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49605f64-1342-41cc-899d-c826ea7da5f2 214s 214s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 214s ------------------------------ Captured log call ------------------------------- 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 214s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-1c3098fe-f919-48fc-af17-f74c9ea7c43c.json'] 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42537 214s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46475 214s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c3098fe-f919-48fc-af17-f74c9ea7c43c, name: python3 214s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp6raiugl6/notebooks/foo'} 214s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.070000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7a93bd2-8c05-4d90-b77c-40e84181ae4b 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7a93bd2-8c05-4d90-b77c-40e84181ae4b 214s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bd5587fe-6f43-4376-bb98-6cc0fa75b4e9 (::1) 2.440000ms 214s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 214s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c3098fe-f919-48fc-af17-f74c9ea7c43c 214s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c3098fe-f919-48fc-af17-f74c9ea7c43c 214s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49605f64-1342-41cc-899d-c826ea7da5f2 (::1) 214s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49605f64-1342-41cc-899d-c826ea7da5f2', version='HTTP/1.1', remote_ip='::1') 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 214s result = await result 214s ^^^^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 214s future.result() 214s ~~~~~~~~~~~~~^^ 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 214s yield maybe_future(sm.delete_session(session_id)) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 214s yielded = self.gen.throw(exc) 214s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 214s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 214s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 214s value = future.result() 214s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 214s raise self._exception.with_traceback(self._exception_tb) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 214s result = coro.send(None) 214s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 214s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 214s raise km.ready.exception() # type: ignore[misc] 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 214s await kernel_awaitable 214s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 214s result = await obj 214s ^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 214s raise e 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 214s out = await method(self, *args, **kwargs) 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 214s await self._async_finish_shutdown(restart=restart) 214s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 214s await asyncio.wait_for( 214s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 214s ) 214s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 214s async with timeouts.timeout(timeout): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^ 214s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 214s raise RuntimeError("Timeout should be used inside a task") 214s RuntimeError: Timeout should be used inside a task 214s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 214s gc.collect() 214s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 215s 215s --------------------------- Captured stderr teardown --------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 215s from pathlib import Path 215s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 215s from glob import _StringGlobber, _no_recurse_symlinks 215s File "/usr/lib/python3.14/glob.py", line 5, in 215s import re 215s File "/usr/lib/python3.14/re/__init__.py", line 386, in 215s copyreg.pickle(Pattern, _pickle, _compile) 215s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/copyreg.py", line 12, in pickle 215s def pickle(ob_type, pickle_function, constructor_ob=None): 215s 215s KeyboardInterrupt 215s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 215s 215s @self.addCleanup 215s def cleanup_sessions(): 215s for session in self.sess_api.list().json(): 215s > self.sess_api.delete(session['id']) 215s 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 215s return self._req('DELETE', id) 215s ^^^^^^^^^^^^^^^^^^^^^^^ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 215s response.raise_for_status() 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s 215s def raise_for_status(self): 215s """Raises :class:`HTTPError`, if one occurred.""" 215s 215s http_error_msg = "" 215s if isinstance(self.reason, bytes): 215s # We attempt to decode utf-8 first because some servers 215s # choose to localize their reason strings. If the string 215s # isn't utf-8, we fall back to iso-8859-1 for all other 215s # encodings. (See PR #3538) 215s try: 215s reason = self.reason.decode("utf-8") 215s except UnicodeDecodeError: 215s reason = self.reason.decode("iso-8859-1") 215s else: 215s reason = self.reason 215s 215s if 400 <= self.status_code < 500: 215s http_error_msg = ( 215s f"{self.status_code} Client Error: {reason} for url: {self.url}" 215s ) 215s 215s elif 500 <= self.status_code < 600: 215s http_error_msg = ( 215s f"{self.status_code} Server Error: {reason} for url: {self.url}" 215s ) 215s 215s if http_error_msg: 215s > raise HTTPError(http_error_msg, response=self) 215s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9387f7ea-c65a-4fc1-8918-14d03e8d77cd 215s 215s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 215s ------------------------------ Captured log call ------------------------------- 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 215s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 215s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-5ba3dea9-bc92-4003-a967-0ce61586d63c.json'] 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33169 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58745 215s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ba3dea9-bc92-4003-a967-0ce61586d63c, name: python3 215s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp6raiugl6/notebooks/foo'} 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.020000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.420000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c3098fe-f919-48fc-af17-f74c9ea7c43c 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c3098fe-f919-48fc-af17-f74c9ea7c43c 215s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/49605f64-1342-41cc-899d-c826ea7da5f2 (::1) 1.040000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ba3dea9-bc92-4003-a967-0ce61586d63c 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ba3dea9-bc92-4003-a967-0ce61586d63c 215s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9387f7ea-c65a-4fc1-8918-14d03e8d77cd (::1) 215s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9387f7ea-c65a-4fc1-8918-14d03e8d77cd', version='HTTP/1.1', remote_ip='::1') 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 215s result = await result 215s ^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 215s future.result() 215s ~~~~~~~~~~~~~^^ 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 215s yield maybe_future(sm.delete_session(session_id)) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 215s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 215s raise self._exception.with_traceback(self._exception_tb) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 215s result = coro.send(None) 215s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 215s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 215s raise km.ready.exception() # type: ignore[misc] 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s WARNING NotebookApp:handlers.py:612 Unhandled error 215s ERROR NotebookApp:log.py:55 { 215s "Host": "localhost:12341", 215s "Accept": "*/*", 215s "User-Agent": "python-requests/2.32.5" 215s } 215s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9387f7ea-c65a-4fc1-8918-14d03e8d77cd (::1) 7.480000ms referer=None 215s --------------------------- Captured stderr teardown --------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 215s from pathlib import Path 215s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 215s from glob import _StringGlobber, _no_recurse_symlinks 215s File "/usr/lib/python3.14/glob.py", line 6, in 215s import fnmatch 215s File "", line 1371, in _find_and_load 215s File "", line 1342, in _find_and_load_unlocked 215s File "", line 924, in _load_unlocked 215s File "", line 822, in module_from_spec 215s File "", line 801, in _init_module_attrs 215s File "", line 641, in cached 215s File "", line 372, in _get_cached 215s File "", line 307, in cache_from_source 215s File "", line 131, in _path_join 215s KeyboardInterrupt 215s _________________ AsyncSessionAPITest.test_create_file_session _________________ 215s 215s @self.addCleanup 215s def cleanup_sessions(): 215s for session in self.sess_api.list().json(): 215s > self.sess_api.delete(session['id']) 215s 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 215s return self._req('DELETE', id) 215s ^^^^^^^^^^^^^^^^^^^^^^^ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 215s response.raise_for_status() 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s 215s def raise_for_status(self): 215s """Raises :class:`HTTPError`, if one occurred.""" 215s 215s http_error_msg = "" 215s if isinstance(self.reason, bytes): 215s # We attempt to decode utf-8 first because some servers 215s # choose to localize their reason strings. If the string 215s # isn't utf-8, we fall back to iso-8859-1 for all other 215s # encodings. (See PR #3538) 215s try: 215s reason = self.reason.decode("utf-8") 215s except UnicodeDecodeError: 215s reason = self.reason.decode("iso-8859-1") 215s else: 215s reason = self.reason 215s 215s if 400 <= self.status_code < 500: 215s http_error_msg = ( 215s f"{self.status_code} Client Error: {reason} for url: {self.url}" 215s ) 215s 215s elif 500 <= self.status_code < 600: 215s http_error_msg = ( 215s f"{self.status_code} Server Error: {reason} for url: {self.url}" 215s ) 215s 215s if http_error_msg: 215s > raise HTTPError(http_error_msg, response=self) 215s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61a33510-32b6-4492-8a38-934c1622d2fc 215s 215s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 215s ------------------------------ Captured log call ------------------------------- 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 215s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-74633ca1-5e9a-45d2-909b-f88b0a8cd3f5.json'] 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44217 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40873 215s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5, name: python3 215s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp6raiugl6/notebooks/foo'} 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.290000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.520000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ba3dea9-bc92-4003-a967-0ce61586d63c 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ba3dea9-bc92-4003-a967-0ce61586d63c 215s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9387f7ea-c65a-4fc1-8918-14d03e8d77cd (::1) 1.030000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 215s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61a33510-32b6-4492-8a38-934c1622d2fc (::1) 215s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61a33510-32b6-4492-8a38-934c1622d2fc', version='HTTP/1.1', remote_ip='::1') 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 215s result = await result 215s ^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 215s future.result() 215s ~~~~~~~~~~~~~^^ 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 215s yield maybe_future(sm.delete_session(session_id)) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 215s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 215s raise self._exception.with_traceback(self._exception_tb) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 215s result = coro.send(None) 215s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 215s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 215s raise km.ready.exception() # type: ignore[misc] 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s WARNING NotebookApp:handlers.py:612 Unhandled error 215s --------------------------- Captured stderr teardown --------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 215s from pathlib import Path 215s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 215s from glob import _StringGlobber, _no_recurse_symlinks 215s File "/usr/lib/python3.14/glob.py", line 6, in 215s import fnmatch 215s File "/usr/lib/python3.14/fnmatch.py", line 105, in 215s _re_setops_sub = re.compile(r'([&~|])').sub 215s ~~~~~~~~~~^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 215s return _compile(pattern, flags) 215s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 215s p = _compiler.compile(pattern, flags) 215s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 215s code = _code(p, flags) 215s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 215s _compile_info(code, p, flags) 215s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/re/_compiler.py", line 546, in _compile_info 215s charset, hascased = _optimize_charset(charset) 215s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/re/_compiler.py", line 353, in _optimize_charset 215s data = _mk_bitmap(charmap) 215s File "/usr/lib/python3.14/re/_compiler.py", line 402, in _mk_bitmap 215s return [_int(s[i - _CODEBITS: i], 2) 215s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 215s KeyboardInterrupt 215s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 215s 215s self = 215s 215s def test_create_with_kernel_id(self): 215s # create a new kernel 215s r = self.request('POST', 'api/kernels') 215s r.raise_for_status() 215s kernel = r.json() 215s 215s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 215s self.assertEqual(resp.status_code, 201) 215s newsession = resp.json() 215s self.assertIn('id', newsession) 215s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 215s self.assertEqual(newsession['kernel']['id'], kernel['id']) 215s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 215s 215s sessions = self.sess_api.list().json() 215s > self.assertEqual(sessions, [newsession]) 215s E AssertionError: Lists differ: [{'id': '61a33510-32b6-4492-8a38-934c1622d2fc', 'p[553 chars]ne}}] != [{'id': '839c5110-68ec-459f-b684-3390b8de35d7', 'p[279 chars]ne}}] 215s E 215s E First differing element 0: 215s E {'id': '61a33510-32b6-4492-8a38-934c1622d2fc', 'p[218 chars]: 0}} 215s E {'id': '839c5110-68ec-459f-b684-3390b8de35d7', 'p[278 chars]one}} 215s E 215s E First list contains 1 additional elements. 215s E First extra element 1: 215s E {'id': '839c5110-68ec-459f-b684-3390b8de35d7', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '1f61a2bf-379e-4c77-906c-ba80034e69b0', 'name': 'python3', 'last_activity': '2026-01-22T18:19:42.861659Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 215s E 215s E Diff is 830 characters long. Set self.maxDiff to None to see it. 215s 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 215s ------------------------------ Captured log call ------------------------------- 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 215s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-1f61a2bf-379e-4c77-906c-ba80034e69b0.json'] 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50557 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34599 215s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1f61a2bf-379e-4c77-906c-ba80034e69b0, name: python3 215s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.100000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.960000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 215s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/61a33510-32b6-4492-8a38-934c1622d2fc (::1) 2.450000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f61a2bf-379e-4c77-906c-ba80034e69b0 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f61a2bf-379e-4c77-906c-ba80034e69b0 215s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 215s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7', version='HTTP/1.1', remote_ip='::1') 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 215s result = await result 215s ^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 215s future.result() 215s ~~~~~~~~~~~~~^^ 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 215s yield maybe_future(sm.delete_session(session_id)) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 215s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 215s raise self._exception.with_traceback(self._exception_tb) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 215s result = coro.send(None) 215s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 215s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 215s raise km.ready.exception() # type: ignore[misc] 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s WARNING NotebookApp:handlers.py:612 Unhandled error 215s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 215s 215s @self.addCleanup 215s def cleanup_sessions(): 215s for session in self.sess_api.list().json(): 215s > self.sess_api.delete(session['id']) 215s 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 215s return self._req('DELETE', id) 215s ^^^^^^^^^^^^^^^^^^^^^^^ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 215s response.raise_for_status() 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s 215s def raise_for_status(self): 215s """Raises :class:`HTTPError`, if one occurred.""" 215s 215s http_error_msg = "" 215s if isinstance(self.reason, bytes): 215s # We attempt to decode utf-8 first because some servers 215s # choose to localize their reason strings. If the string 215s # isn't utf-8, we fall back to iso-8859-1 for all other 215s # encodings. (See PR #3538) 215s try: 215s reason = self.reason.decode("utf-8") 215s except UnicodeDecodeError: 215s reason = self.reason.decode("iso-8859-1") 215s else: 215s reason = self.reason 215s 215s if 400 <= self.status_code < 500: 215s http_error_msg = ( 215s f"{self.status_code} Client Error: {reason} for url: {self.url}" 215s ) 215s 215s elif 500 <= self.status_code < 600: 215s http_error_msg = ( 215s f"{self.status_code} Server Error: {reason} for url: {self.url}" 215s ) 215s 215s if http_error_msg: 215s > raise HTTPError(http_error_msg, response=self) 215s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 215s 215s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 215s ---------------------------- Captured stderr setup ----------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 215s from ipykernel import kernelapp as app 215s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 215s from .connect import * # noqa: F403 215s ^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 215s import json 215s File "/usr/lib/python3.14/json/__init__.py", line 107, in 215s from .encoder import JSONEncoder 215s File "", line 1371, in _find_and_load 215s File "", line 1342, in _find_and_load_unlocked 215s File "", line 938, in _load_unlocked 215s File "", line 755, in exec_module 215s File "", line 888, in get_code 215s File "", line 511, in _compile_bytecode 215s KeyboardInterrupt 215s ------------------------------ Captured log call ------------------------------- 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.010000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 215s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-fdc2363b-8fcb-4add-a576-fb80e4b24d57.json'] 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52557 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59285 215s INFO NotebookApp:kernelmanager.py:179 Kernel started: fdc2363b-8fcb-4add-a576-fb80e4b24d57, name: python3 215s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.830000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1f61a2bf-379e-4c77-906c-ba80034e69b0 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f61a2bf-379e-4c77-906c-ba80034e69b0 215s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 2.880000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fdc2363b-8fcb-4add-a576-fb80e4b24d57 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdc2363b-8fcb-4add-a576-fb80e4b24d57 215s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 215s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7', version='HTTP/1.1', remote_ip='::1') 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 215s result = await result 215s ^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 215s future.result() 215s ~~~~~~~~~~~~~^^ 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 215s yield maybe_future(sm.delete_session(session_id)) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 215s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 215s raise self._exception.with_traceback(self._exception_tb) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 215s result = coro.send(None) 215s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 215s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 215s raise km.ready.exception() # type: ignore[misc] 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s WARNING NotebookApp:handlers.py:612 Unhandled error 215s ERROR NotebookApp:log.py:55 { 215s "Host": "localhost:12341", 215s "Accept": "*/*", 215s "User-Agent": "python-requests/2.32.5" 215s } 215s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 6.760000ms referer=None 215s --------------------------- Captured stderr teardown --------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 215s from ipykernel import kernelapp as app 215s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 215s from .connect import * # noqa: F403 215s ^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 215s from __future__ import annotations 215s File "", line 1371, in _find_and_load 215s File "", line 1333, in _find_and_load_unlocked 215s File "", line 1267, in _find_spec 215s File "", line 1292, in find_spec 215s File "", line 1266, in _get_spec 215s File "", line 1398, in find_spec 215s File "", line 166, in _path_isfile 215s File "", line 158, in _path_is_mode_type 215s File "", line 152, in _path_stat 215s KeyboardInterrupt 215s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 215s 215s @self.addCleanup 215s def cleanup_sessions(): 215s for session in self.sess_api.list().json(): 215s > self.sess_api.delete(session['id']) 215s 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 215s return self._req('DELETE', id) 215s ^^^^^^^^^^^^^^^^^^^^^^^ 215s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 215s response.raise_for_status() 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s 215s def raise_for_status(self): 215s """Raises :class:`HTTPError`, if one occurred.""" 215s 215s http_error_msg = "" 215s if isinstance(self.reason, bytes): 215s # We attempt to decode utf-8 first because some servers 215s # choose to localize their reason strings. If the string 215s # isn't utf-8, we fall back to iso-8859-1 for all other 215s # encodings. (See PR #3538) 215s try: 215s reason = self.reason.decode("utf-8") 215s except UnicodeDecodeError: 215s reason = self.reason.decode("iso-8859-1") 215s else: 215s reason = self.reason 215s 215s if 400 <= self.status_code < 500: 215s http_error_msg = ( 215s f"{self.status_code} Client Error: {reason} for url: {self.url}" 215s ) 215s 215s elif 500 <= self.status_code < 600: 215s http_error_msg = ( 215s f"{self.status_code} Server Error: {reason} for url: {self.url}" 215s ) 215s 215s if http_error_msg: 215s > raise HTTPError(http_error_msg, response=self) 215s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 215s 215s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 215s ------------------------------ Captured log call ------------------------------- 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.030000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 215s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6raiugl6/runtime/kernel-2d2d5ce3-b916-4046-b986-a952075bf486.json'] 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37121 215s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34879 215s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d2d5ce3-b916-4046-b986-a952075bf486, name: python3 215s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp6raiugl6/notebooks/foo'} 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fdc2363b-8fcb-4add-a576-fb80e4b24d57 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdc2363b-8fcb-4add-a576-fb80e4b24d57 215s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 17.410000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 215s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 215s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d2d5ce3-b916-4046-b986-a952075bf486 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d2d5ce3-b916-4046-b986-a952075bf486 215s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 215s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7', version='HTTP/1.1', remote_ip='::1') 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 215s result = await result 215s ^^^^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 215s future.result() 215s ~~~~~~~~~~~~~^^ 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 215s yield maybe_future(sm.delete_session(session_id)) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 215s yielded = self.gen.throw(exc) 215s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 215s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 215s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 215s value = future.result() 215s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 215s raise self._exception.with_traceback(self._exception_tb) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 215s result = coro.send(None) 215s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 215s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 215s raise km.ready.exception() # type: ignore[misc] 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 215s await kernel_awaitable 215s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 215s result = await obj 215s ^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 215s raise e 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 215s out = await method(self, *args, **kwargs) 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 215s await self._async_finish_shutdown(restart=restart) 215s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 215s await asyncio.wait_for( 215s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 215s ) 215s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 215s async with timeouts.timeout(timeout): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^ 215s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 215s raise RuntimeError("Timeout should be used inside a task") 215s RuntimeError: Timeout should be used inside a task 215s WARNING NotebookApp:handlers.py:612 Unhandled error 215s ERROR NotebookApp:log.py:55 { 215s "Host": "localhost:12341", 215s "Accept": "*/*", 215s "User-Agent": "python-requests/2.32.5" 215s } 215s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/839c5110-68ec-459f-b684-3390b8de35d7 (::1) 7.830000ms referer=None 215s --------------------------- Captured stderr teardown --------------------------- 215s Traceback (most recent call last): 215s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 215s return _run_code(code, main_globals, None, 215s "__main__", mod_spec) 215s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 215s exec(code, run_globals) 215s ~~~~^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 215s from pathlib import Path 215s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 215s from glob import _StringGlobber, _no_recurse_symlinks 215s File "/usr/lib/python3.14/glob.py", line 5, in 215s import re 215s File "/usr/lib/python3.14/re/__init__.py", line 315, in 215s Pattern = type(_compiler.compile('', 0)) 215s ~~~~~~~~~~~~~~~~~^^^^^^^ 215s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 215s p = _parser.parse(p, flags) 215s File "/usr/lib/python3.14/re/_parser.py", line 966, in parse 215s source = Tokenizer(str) 215s KeyboardInterrupt 215s ---------------------------- Captured log teardown ----------------------------- 215s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1f61a2bf-379e-4c77-906c-ba80034e69b0 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74633ca1-5e9a-45d2-909b-f88b0a8cd3f5 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d2d5ce3-b916-4046-b986-a952075bf486 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdc2363b-8fcb-4add-a576-fb80e4b24d57 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ba3dea9-bc92-4003-a967-0ce61586d63c 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7a93bd2-8c05-4d90-b77c-40e84181ae4b 215s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c3098fe-f919-48fc-af17-f74c9ea7c43c 215s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 215s =============================== warnings summary =============================== 215s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 215s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 215s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 215s return LooseVersion(v) >= LooseVersion(check) 215s 215s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 215s services/kernels/tests/test_kernels_api.py: 68 warnings 215s services/sessions/tests/test_sessions_api.py: 88 warnings 215s /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). 215s dt = unaware(*args, **kwargs) 215s 215s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 215s /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 215s pytestmark = pytest.mark.integration_tests 215s 215s services/kernels/tests/test_kernels_api.py: 6 warnings 215s services/sessions/tests/test_sessions_api.py: 6 warnings 215s /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 215s policy = events.get_event_loop_policy() 215s 215s services/kernels/tests/test_kernels_api.py: 24 warnings 215s services/sessions/tests/test_sessions_api.py: 19 warnings 215s /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 215s loop = events.get_event_loop_policy().get_event_loop() 215s 215s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 215s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 215s loop.make_current() 215s 215s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 215s =========================== short test summary info ============================ 215s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 215s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 215s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 215s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 215s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 215s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 215s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 215s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 215s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 215s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 215s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 215s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 215s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 215s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 215s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 215s ========== 23 failed, 307 deselected, 216 warnings, 4 errors in 5.64s ========== 215s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 215s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 215s autopkgtest [18:19:43]: test pytest: -----------------------] 216s pytest FAIL non-zero exit status 1 216s autopkgtest [18:19:44]: test pytest: - - - - - - - - - - results - - - - - - - - - - 216s autopkgtest [18:19:44]: @@@@@@@@@@@@@@@@@@@@ summary 216s pytest FAIL non-zero exit status 1