0s autopkgtest [18:34:31]: starting date and time: 2026-01-22 18:34:31+0000 0s autopkgtest [18:34:31]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [18:34:31]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ves3w7sc/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-ppc64el-25.secgroup --name adt-resolute-ppc64el-jupyter-notebook-20260122-183430-juju-7f2275-prod-proposed-migration-environment-15-78cfc8c1-ac26-4c6a-b4b7-9494560803ed --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-jupyter-notebook-20260122-183430-juju-7f2275-prod-proposed-migration-environment-15-78cfc8c1-ac26-4c6a-b4b7-9494560803ed from image adt/ubuntu-resolute-ppc64el-server-20260122.img (UUID 987e5803-394f-43eb-a969-151b6b75a57a)... 50s autopkgtest [18:35:21]: testbed dpkg architecture: ppc64el 50s autopkgtest [18:35:21]: testbed apt version: 3.1.12 50s autopkgtest [18:35:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 50s autopkgtest [18:35:21]: testbed release detected to be: None 51s autopkgtest [18:35:22]: updating testbed package index (apt update) 51s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 52s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 52s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 52s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 52s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 52s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [19.2 kB] 52s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.9 kB] 52s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [815 kB] 52s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [103 kB] 52s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [618 kB] 52s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [4644 B] 52s Fetched 1768 kB in 1s (2886 kB/s) 53s Reading package lists... 54s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 54s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 54s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 54s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 55s Reading package lists... 55s Reading package lists... 55s Building dependency tree... 55s Reading state information... 55s Calculating upgrade... 55s The following packages were automatically installed and are no longer required: 55s python3.13 python3.13-minimal 55s Use 'sudo apt autoremove' to remove them. 55s The following NEW packages will be installed: 55s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 55s The following packages will be upgraded: 55s libpython3-stdlib python3 python3-gdbm python3-minimal 55s 4 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 55s Need to get 6966 kB of archives. 55s After this operation, 27.7 MB of additional disk space will be used. 55s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-minimal ppc64el 3.14.2-1 [921 kB] 55s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-minimal ppc64el 3.14.2-1 [2712 kB] 55s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-gdbm ppc64el 3.14.2-1 [11.1 kB] 55s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-minimal ppc64el 3.14.2-1 [28.2 kB] 55s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3 ppc64el 3.14.2-1 [22.9 kB] 55s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-stdlib ppc64el 3.14.2-1 [2444 kB] 55s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14 ppc64el 3.14.2-1 [816 kB] 55s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el libpython3-stdlib ppc64el 3.14.2-1 [10.9 kB] 56s dpkg-preconfigure: unable to re-open stdin: No such file or directory 56s Fetched 6966 kB in 0s (25.6 MB/s) 56s Selecting previously unselected package libpython3.14-minimal:ppc64el. 56s (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 ... 120824 files and directories currently installed.) 56s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_ppc64el.deb ... 56s Unpacking libpython3.14-minimal:ppc64el (3.14.2-1) ... 56s Selecting previously unselected package python3.14-minimal. 56s Preparing to unpack .../python3.14-minimal_3.14.2-1_ppc64el.deb ... 56s Unpacking python3.14-minimal (3.14.2-1) ... 56s Preparing to unpack .../python3-gdbm_3.14.2-1_ppc64el.deb ... 56s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 56s Setting up libpython3.14-minimal:ppc64el (3.14.2-1) ... 56s Setting up python3.14-minimal (3.14.2-1) ... 57s (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 ... 121166 files and directories currently installed.) 57s Preparing to unpack .../python3-minimal_3.14.2-1_ppc64el.deb ... 58s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 58s Setting up python3-minimal (3.14.2-1) ... 58s (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 ... 121166 files and directories currently installed.) 58s Preparing to unpack .../python3_3.14.2-1_ppc64el.deb ... 58s running python pre-rtupdate hooks for python3.14... 58s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 58s Selecting previously unselected package libpython3.14-stdlib:ppc64el. 58s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_ppc64el.deb ... 58s Unpacking libpython3.14-stdlib:ppc64el (3.14.2-1) ... 59s Selecting previously unselected package python3.14. 59s Preparing to unpack .../python3.14_3.14.2-1_ppc64el.deb ... 59s Unpacking python3.14 (3.14.2-1) ... 59s Preparing to unpack .../libpython3-stdlib_3.14.2-1_ppc64el.deb ... 59s Unpacking libpython3-stdlib:ppc64el (3.14.2-1) over (3.13.7-1) ... 59s Setting up libpython3.14-stdlib:ppc64el (3.14.2-1) ... 59s Setting up python3.14 (3.14.2-1) ... 60s Setting up libpython3-stdlib:ppc64el (3.14.2-1) ... 60s Setting up python3-gdbm (3.14.2-1) ... 60s Setting up python3 (3.14.2-1) ... 60s running python rtupdate hooks for python3.14... 60s running python post-rtupdate hooks for python3.14... 60s Processing triggers for man-db (2.13.1-1) ... 62s Processing triggers for systemd (259-1ubuntu2) ... 62s autopkgtest [18:35:33]: upgrading testbed (apt dist-upgrade and autopurge) 62s Reading package lists... 62s Building dependency tree... 62s Reading state information... 62s Calculating upgrade... 62s The following packages were automatically installed and are no longer required: 62s python3.13 python3.13-minimal 62s Use 'sudo apt autoremove' to remove them. 62s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 63s Reading package lists... 63s Building dependency tree... 63s Reading state information... 63s Solving dependencies... 63s The following packages will be REMOVED: 63s python3.13* python3.13-minimal* 63s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 63s After this operation, 9077 kB disk space will be freed. 63s (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 ... 121596 files and directories currently installed.) 63s Removing python3.13 (3.13.11-1) ... 63s Removing python3.13-minimal (3.13.11-1) ... 65s Processing triggers for man-db (2.13.1-1) ... 65s Processing triggers for systemd (259-1ubuntu2) ... 66s (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 ... 121569 files and directories currently installed.) 66s Purging configuration files for python3.13-minimal (3.13.11-1) ... 68s autopkgtest [18:35:39]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:45:54 UTC 2026 68s autopkgtest [18:35:39]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 71s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 71s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 71s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 71s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 71s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 71s gpgv: Can't check signature: No public key 71s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 71s autopkgtest [18:35:42]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 71s autopkgtest [18:35:42]: build not needed 73s autopkgtest [18:35:44]: test pytest: preparing testbed 73s Reading package lists... 73s Building dependency tree... 73s Reading state information... 73s Solving dependencies... 73s The following NEW packages will be installed: 73s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 73s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 73s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 73s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 73s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 73s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 73s libsodium23 libsource-highlight-common libsource-highlight4t64 libzmq5 73s node-jed python-notebook-doc python-tinycss2-common python3-all 73s python3-argon2 python3-argon2-cffi-bindings python3-astroid 73s python3-asttokens python3-bleach python3-bs4 python3-cffi python3-comm 73s python3-coverage python3-debugpy python3-decorator python3-defusedxml 73s python3-executing python3-fastjsonschema python3-html5lib python3-iniconfig 73s python3-ipykernel python3-ipython python3-ipython-genutils python3-jedi 73s python3-jupyter-client python3-jupyter-core python3-jupyterlab-pygments 73s python3-matplotlib-inline python3-mistune python3-nbclient python3-nbconvert 73s python3-nbformat python3-nest-asyncio python3-notebook python3-pandocfilters 73s python3-parso python3-platformdirs python3-pluggy python3-ply 73s python3-prometheus-client python3-prompt-toolkit python3-psutil 73s python3-pure-eval python3-pycparser python3-pytest 73s python3-requests-unixsocket python3-send2trash python3-soupsieve 73s python3-stack-data python3-terminado python3-tinycss2 python3-tornado 73s python3-traitlets python3-typeshed python3-wcwidth python3-webencodings 73s python3-zmq python3.13 python3.13-minimal sphinx-rtd-theme-common 73s 0 upgraded, 92 newly installed, 0 to remove and 0 not upgraded. 73s Need to get 36.6 MB of archives. 73s After this operation, 187 MB of additional disk space will be used. 73s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.13-minimal ppc64el 3.13.11-1 [2571 kB] 74s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-lato all 2.015-1build1 [2779 kB] 74s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.13 ppc64el 3.13.11-1 [758 kB] 74s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 74s Get:5 http://ftpmaster.internal/ubuntu resolute/universe ppc64el fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 74s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 74s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libbabeltrace1 ppc64el 1.5.11-5 [209 kB] 74s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 74s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsource-highlight4t64 ppc64el 3.1.9-4.3build2 [296 kB] 74s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el gdb ppc64el 16.3-5ubuntu1 [5222 kB] 74s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-platformdirs all 4.5.1-1 [17.1 kB] 74s Get:12 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 74s Get:13 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-core all 5.9.1-1 [28.9 kB] 74s Get:14 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-core all 5.9.1-1 [6938 B] 74s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 74s Get:16 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 74s Get:17 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 74s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 74s Get:19 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 74s Get:20 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 74s Get:21 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-es6-promise all 4.2.8-12 [14.1 kB] 74s Get:22 http://ftpmaster.internal/ubuntu resolute/universe ppc64el node-jed all 1.1.1-4 [15.2 kB] 74s Get:23 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jed all 1.1.1-4 [2584 B] 74s Get:24 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 74s Get:25 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 74s Get:26 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 74s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 74s Get:28 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-moment all 2.29.4+ds-1 [147 kB] 74s Get:29 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 74s Get:30 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-requirejs-text all 2.0.12-2 [9732 B] 74s Get:31 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-text-encoding all 0.7.0-5 [140 kB] 74s Get:32 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-xterm all 5.3.0-4 [475 kB] 74s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-tornado ppc64el 6.5.4-0.1 [306 kB] 74s Get:34 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-terminado all 0.18.1-1 [13.2 kB] 74s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el libargon2-1 ppc64el 0~20190702+dfsg-5 [27.0 kB] 74s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-ply all 3.11-10 [45.9 kB] 74s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-pycparser all 2.23-1build1 [77.3 kB] 74s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-cffi all 2.0.0-2 [75.5 kB] 74s Get:39 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2-cffi-bindings ppc64el 25.1.0-2 [15.5 kB] 74s Get:40 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-argon2 ppc64el 25.1.0-2 [13.8 kB] 74s Get:41 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-comm all 0.2.1-1build1 [7148 B] 74s Get:42 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-coverage ppc64el 7.8.2+dfsg1-1ubuntu1 [160 kB] 74s Get:43 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-debugpy ppc64el 1.8.19+ds-1ubuntu1 [927 kB] 74s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-decorator all 5.2.1-2 [28.1 kB] 74s Get:45 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-parso all 0.8.5-1 [68.0 kB] 74s Get:46 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 75s Get:47 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jedi all 0.19.1+ds1-1build1 [694 kB] 75s Get:48 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-matplotlib-inline all 0.2.1-1 [9462 B] 75s Get:49 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 75s Get:50 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-prompt-toolkit all 3.0.52-2 [258 kB] 75s Get:51 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-astroid all 4.0.2-1ubuntu1 [172 kB] 75s Get:52 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-asttokens all 3.0.1-1 [20.7 kB] 75s Get:53 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-executing all 2.2.1-0.1 [26.2 kB] 75s Get:54 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pure-eval all 0.2.3-1 [11.4 kB] 75s Get:55 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-stack-data all 0.6.3-3 [22.2 kB] 75s Get:56 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython all 8.35.0-2 [575 kB] 75s Get:57 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-psutil ppc64el 7.1.0-1ubuntu1 [192 kB] 75s Get:58 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libnorm1t64 ppc64el 1.5.9+dfsg-4 [198 kB] 75s Get:59 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libpgm-5.3-0t64 ppc64el 5.3.128~dfsg-2.1build2 [184 kB] 75s Get:60 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsodium23 ppc64el 1.0.18-2 [160 kB] 75s Get:61 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libzmq5 ppc64el 4.3.5-1build3 [302 kB] 75s Get:62 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-zmq ppc64el 27.1.0-1 [232 kB] 75s Get:63 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyter-client all 8.7.0-1 [78.5 kB] 75s Get:64 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nest-asyncio all 1.6.0-1 [6686 B] 75s Get:65 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipykernel all 6.30.1-1 [82.8 kB] 75s Get:66 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ipython-genutils all 0.2.0-7 [22.0 kB] 75s Get:67 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-tinycss2-common all 1.5.1-1 [47.3 kB] 75s Get:68 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-webencodings all 0.5.1-5build1 [11.7 kB] 75s Get:69 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-tinycss2 all 1.5.1-1 [23.3 kB] 75s Get:70 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-html5lib all 1.2-3 [90.6 kB] 75s Get:71 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-bleach all 6.3.0-1 [44.2 kB] 75s Get:72 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-soupsieve all 2.8.1-1 [33.7 kB] 75s Get:73 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-bs4 all 4.14.3-2build1 [84.8 kB] 75s Get:74 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-defusedxml all 0.7.1-3build1 [42.4 kB] 75s Get:75 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 75s Get:76 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mistune all 3.1.4-1 [35.0 kB] 75s Get:77 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-fastjsonschema all 2.21.1-1 [20.4 kB] 75s Get:78 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbformat all 5.10.4-1 [39.2 kB] 75s Get:79 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbclient all 0.10.4-1 [22.6 kB] 75s Get:80 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pandocfilters all 1.5.1-1 [23.6 kB] 75s Get:81 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-nbconvert all 7.16.6-1 [140 kB] 75s Get:82 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 75s Get:83 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-send2trash all 1.8.3-1 [14.6 kB] 75s Get:84 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 75s Get:85 http://ftpmaster.internal/ubuntu resolute/universe ppc64el jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 75s Get:86 http://ftpmaster.internal/ubuntu resolute/main ppc64el sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 75s Get:87 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 75s Get:88 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-all ppc64el 3.14.2-1 [890 B] 75s Get:89 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-iniconfig all 2.1.0-2 [6962 B] 75s Get:90 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pluggy all 1.6.0-2 [21.1 kB] 75s Get:91 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest all 9.0.2-2 [277 kB] 75s Get:92 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-requests-unixsocket all 1.0.1-1 [8620 B] 76s Fetched 36.6 MB in 2s (17.1 MB/s) 76s Selecting previously unselected package python3.13-minimal. 76s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 121571 files and directories currently installed.) 76s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_ppc64el.deb ... 76s Unpacking python3.13-minimal (3.13.11-1) ... 76s Selecting previously unselected package fonts-lato. 76s Preparing to unpack .../01-fonts-lato_2.015-1build1_all.deb ... 76s Unpacking fonts-lato (2.015-1build1) ... 76s Selecting previously unselected package python3.13. 76s Preparing to unpack .../02-python3.13_3.13.11-1_ppc64el.deb ... 76s Unpacking python3.13 (3.13.11-1) ... 76s Selecting previously unselected package fonts-font-awesome. 76s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 76s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 76s Selecting previously unselected package fonts-glyphicons-halflings. 76s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 76s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 76s Selecting previously unselected package fonts-mathjax. 76s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 76s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 76s Selecting previously unselected package libbabeltrace1:ppc64el. 76s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_ppc64el.deb ... 76s Unpacking libbabeltrace1:ppc64el (1.5.11-5) ... 76s Selecting previously unselected package libsource-highlight-common. 76s Preparing to unpack .../07-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 76s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 76s Selecting previously unselected package libsource-highlight4t64:ppc64el. 76s Preparing to unpack .../08-libsource-highlight4t64_3.1.9-4.3build2_ppc64el.deb ... 76s Unpacking libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 76s Selecting previously unselected package gdb. 76s Preparing to unpack .../09-gdb_16.3-5ubuntu1_ppc64el.deb ... 76s Unpacking gdb (16.3-5ubuntu1) ... 77s Selecting previously unselected package python3-platformdirs. 77s Preparing to unpack .../10-python3-platformdirs_4.5.1-1_all.deb ... 77s Unpacking python3-platformdirs (4.5.1-1) ... 77s Selecting previously unselected package python3-traitlets. 77s Preparing to unpack .../11-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 77s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 77s Selecting previously unselected package python3-jupyter-core. 77s Preparing to unpack .../12-python3-jupyter-core_5.9.1-1_all.deb ... 77s Unpacking python3-jupyter-core (5.9.1-1) ... 77s Selecting previously unselected package jupyter-core. 77s Preparing to unpack .../13-jupyter-core_5.9.1-1_all.deb ... 77s Unpacking jupyter-core (5.9.1-1) ... 77s Selecting previously unselected package libjs-underscore. 77s Preparing to unpack .../14-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 77s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 77s Selecting previously unselected package libjs-backbone. 77s Preparing to unpack .../15-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 77s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 77s Selecting previously unselected package libjs-bootstrap. 77s Preparing to unpack .../16-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 77s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 77s Selecting previously unselected package libjs-jquery. 77s Preparing to unpack .../17-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 77s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 77s Selecting previously unselected package libjs-bootstrap-tour. 77s Preparing to unpack .../18-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 77s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 77s Selecting previously unselected package libjs-codemirror. 77s Preparing to unpack .../19-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 77s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 77s Selecting previously unselected package libjs-es6-promise. 77s Preparing to unpack .../20-libjs-es6-promise_4.2.8-12_all.deb ... 77s Unpacking libjs-es6-promise (4.2.8-12) ... 77s Selecting previously unselected package node-jed. 77s Preparing to unpack .../21-node-jed_1.1.1-4_all.deb ... 77s Unpacking node-jed (1.1.1-4) ... 77s Selecting previously unselected package libjs-jed. 77s Preparing to unpack .../22-libjs-jed_1.1.1-4_all.deb ... 77s Unpacking libjs-jed (1.1.1-4) ... 77s Selecting previously unselected package libjs-jquery-typeahead. 77s Preparing to unpack .../23-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 77s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 77s Selecting previously unselected package libjs-jquery-ui. 77s Preparing to unpack .../24-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 77s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 77s Selecting previously unselected package libjs-marked. 77s Preparing to unpack .../25-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 77s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 77s Selecting previously unselected package libjs-mathjax. 77s Preparing to unpack .../26-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 77s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 77s Selecting previously unselected package libjs-moment. 77s Preparing to unpack .../27-libjs-moment_2.29.4+ds-1_all.deb ... 77s Unpacking libjs-moment (2.29.4+ds-1) ... 77s Selecting previously unselected package libjs-requirejs. 77s Preparing to unpack .../28-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 77s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 77s Selecting previously unselected package libjs-requirejs-text. 77s Preparing to unpack .../29-libjs-requirejs-text_2.0.12-2_all.deb ... 77s Unpacking libjs-requirejs-text (2.0.12-2) ... 77s Selecting previously unselected package libjs-text-encoding. 78s Preparing to unpack .../30-libjs-text-encoding_0.7.0-5_all.deb ... 78s Unpacking libjs-text-encoding (0.7.0-5) ... 78s Selecting previously unselected package libjs-xterm. 78s Preparing to unpack .../31-libjs-xterm_5.3.0-4_all.deb ... 78s Unpacking libjs-xterm (5.3.0-4) ... 78s Selecting previously unselected package python3-tornado. 78s Preparing to unpack .../32-python3-tornado_6.5.4-0.1_ppc64el.deb ... 78s Unpacking python3-tornado (6.5.4-0.1) ... 78s Selecting previously unselected package python3-terminado. 78s Preparing to unpack .../33-python3-terminado_0.18.1-1_all.deb ... 78s Unpacking python3-terminado (0.18.1-1) ... 78s Selecting previously unselected package libargon2-1:ppc64el. 78s Preparing to unpack .../34-libargon2-1_0~20190702+dfsg-5_ppc64el.deb ... 78s Unpacking libargon2-1:ppc64el (0~20190702+dfsg-5) ... 78s Selecting previously unselected package python3-ply. 78s Preparing to unpack .../35-python3-ply_3.11-10_all.deb ... 78s Unpacking python3-ply (3.11-10) ... 78s Selecting previously unselected package python3-pycparser. 78s Preparing to unpack .../36-python3-pycparser_2.23-1build1_all.deb ... 78s Unpacking python3-pycparser (2.23-1build1) ... 78s Selecting previously unselected package python3-cffi. 78s Preparing to unpack .../37-python3-cffi_2.0.0-2_all.deb ... 78s Unpacking python3-cffi (2.0.0-2) ... 78s Selecting previously unselected package python3-argon2-cffi-bindings. 78s Preparing to unpack .../38-python3-argon2-cffi-bindings_25.1.0-2_ppc64el.deb ... 78s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 78s Selecting previously unselected package python3-argon2. 78s Preparing to unpack .../39-python3-argon2_25.1.0-2_ppc64el.deb ... 78s Unpacking python3-argon2 (25.1.0-2) ... 78s Selecting previously unselected package python3-comm. 78s Preparing to unpack .../40-python3-comm_0.2.1-1build1_all.deb ... 78s Unpacking python3-comm (0.2.1-1build1) ... 78s Selecting previously unselected package python3-coverage. 78s Preparing to unpack .../41-python3-coverage_7.8.2+dfsg1-1ubuntu1_ppc64el.deb ... 78s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 78s Selecting previously unselected package python3-debugpy. 78s Preparing to unpack .../42-python3-debugpy_1.8.19+ds-1ubuntu1_ppc64el.deb ... 78s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 78s Selecting previously unselected package python3-decorator. 78s Preparing to unpack .../43-python3-decorator_5.2.1-2_all.deb ... 78s Unpacking python3-decorator (5.2.1-2) ... 78s Selecting previously unselected package python3-parso. 78s Preparing to unpack .../44-python3-parso_0.8.5-1_all.deb ... 78s Unpacking python3-parso (0.8.5-1) ... 78s Selecting previously unselected package python3-typeshed. 78s Preparing to unpack .../45-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 78s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 78s Selecting previously unselected package python3-jedi. 78s Preparing to unpack .../46-python3-jedi_0.19.1+ds1-1build1_all.deb ... 78s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 79s Selecting previously unselected package python3-matplotlib-inline. 79s Preparing to unpack .../47-python3-matplotlib-inline_0.2.1-1_all.deb ... 79s Unpacking python3-matplotlib-inline (0.2.1-1) ... 79s Selecting previously unselected package python3-wcwidth. 79s Preparing to unpack .../48-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 79s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 79s Selecting previously unselected package python3-prompt-toolkit. 79s Preparing to unpack .../49-python3-prompt-toolkit_3.0.52-2_all.deb ... 79s Unpacking python3-prompt-toolkit (3.0.52-2) ... 79s Selecting previously unselected package python3-astroid. 79s Preparing to unpack .../50-python3-astroid_4.0.2-1ubuntu1_all.deb ... 79s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 79s Selecting previously unselected package python3-asttokens. 79s Preparing to unpack .../51-python3-asttokens_3.0.1-1_all.deb ... 79s Unpacking python3-asttokens (3.0.1-1) ... 79s Selecting previously unselected package python3-executing. 79s Preparing to unpack .../52-python3-executing_2.2.1-0.1_all.deb ... 79s Unpacking python3-executing (2.2.1-0.1) ... 79s Selecting previously unselected package python3-pure-eval. 79s Preparing to unpack .../53-python3-pure-eval_0.2.3-1_all.deb ... 79s Unpacking python3-pure-eval (0.2.3-1) ... 79s Selecting previously unselected package python3-stack-data. 79s Preparing to unpack .../54-python3-stack-data_0.6.3-3_all.deb ... 79s Unpacking python3-stack-data (0.6.3-3) ... 79s Selecting previously unselected package python3-ipython. 79s Preparing to unpack .../55-python3-ipython_8.35.0-2_all.deb ... 79s Unpacking python3-ipython (8.35.0-2) ... 79s Selecting previously unselected package python3-psutil. 79s Preparing to unpack .../56-python3-psutil_7.1.0-1ubuntu1_ppc64el.deb ... 79s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 79s Selecting previously unselected package libnorm1t64:ppc64el. 79s Preparing to unpack .../57-libnorm1t64_1.5.9+dfsg-4_ppc64el.deb ... 79s Unpacking libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 79s Selecting previously unselected package libpgm-5.3-0t64:ppc64el. 79s Preparing to unpack .../58-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_ppc64el.deb ... 79s Unpacking libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 79s Selecting previously unselected package libsodium23:ppc64el. 79s Preparing to unpack .../59-libsodium23_1.0.18-2_ppc64el.deb ... 79s Unpacking libsodium23:ppc64el (1.0.18-2) ... 79s Selecting previously unselected package libzmq5:ppc64el. 79s Preparing to unpack .../60-libzmq5_4.3.5-1build3_ppc64el.deb ... 79s Unpacking libzmq5:ppc64el (4.3.5-1build3) ... 79s Selecting previously unselected package python3-zmq. 79s Preparing to unpack .../61-python3-zmq_27.1.0-1_ppc64el.deb ... 79s Unpacking python3-zmq (27.1.0-1) ... 79s Selecting previously unselected package python3-jupyter-client. 79s Preparing to unpack .../62-python3-jupyter-client_8.7.0-1_all.deb ... 79s Unpacking python3-jupyter-client (8.7.0-1) ... 79s Selecting previously unselected package python3-nest-asyncio. 79s Preparing to unpack .../63-python3-nest-asyncio_1.6.0-1_all.deb ... 79s Unpacking python3-nest-asyncio (1.6.0-1) ... 79s Selecting previously unselected package python3-ipykernel. 79s Preparing to unpack .../64-python3-ipykernel_6.30.1-1_all.deb ... 79s Unpacking python3-ipykernel (6.30.1-1) ... 79s Selecting previously unselected package python3-ipython-genutils. 79s Preparing to unpack .../65-python3-ipython-genutils_0.2.0-7_all.deb ... 79s Unpacking python3-ipython-genutils (0.2.0-7) ... 79s Selecting previously unselected package python-tinycss2-common. 79s Preparing to unpack .../66-python-tinycss2-common_1.5.1-1_all.deb ... 79s Unpacking python-tinycss2-common (1.5.1-1) ... 79s Selecting previously unselected package python3-webencodings. 79s Preparing to unpack .../67-python3-webencodings_0.5.1-5build1_all.deb ... 79s Unpacking python3-webencodings (0.5.1-5build1) ... 79s Selecting previously unselected package python3-tinycss2. 79s Preparing to unpack .../68-python3-tinycss2_1.5.1-1_all.deb ... 79s Unpacking python3-tinycss2 (1.5.1-1) ... 79s Selecting previously unselected package python3-html5lib. 79s Preparing to unpack .../69-python3-html5lib_1.2-3_all.deb ... 79s Unpacking python3-html5lib (1.2-3) ... 79s Selecting previously unselected package python3-bleach. 79s Preparing to unpack .../70-python3-bleach_6.3.0-1_all.deb ... 79s Unpacking python3-bleach (6.3.0-1) ... 79s Selecting previously unselected package python3-soupsieve. 79s Preparing to unpack .../71-python3-soupsieve_2.8.1-1_all.deb ... 79s Unpacking python3-soupsieve (2.8.1-1) ... 79s Selecting previously unselected package python3-bs4. 79s Preparing to unpack .../72-python3-bs4_4.14.3-2build1_all.deb ... 79s Unpacking python3-bs4 (4.14.3-2build1) ... 79s Selecting previously unselected package python3-defusedxml. 79s Preparing to unpack .../73-python3-defusedxml_0.7.1-3build1_all.deb ... 79s Unpacking python3-defusedxml (0.7.1-3build1) ... 79s Selecting previously unselected package python3-jupyterlab-pygments. 79s Preparing to unpack .../74-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 79s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 79s Selecting previously unselected package python3-mistune. 79s Preparing to unpack .../75-python3-mistune_3.1.4-1_all.deb ... 79s Unpacking python3-mistune (3.1.4-1) ... 79s Selecting previously unselected package python3-fastjsonschema. 79s Preparing to unpack .../76-python3-fastjsonschema_2.21.1-1_all.deb ... 79s Unpacking python3-fastjsonschema (2.21.1-1) ... 79s Selecting previously unselected package python3-nbformat. 79s Preparing to unpack .../77-python3-nbformat_5.10.4-1_all.deb ... 79s Unpacking python3-nbformat (5.10.4-1) ... 79s Selecting previously unselected package python3-nbclient. 79s Preparing to unpack .../78-python3-nbclient_0.10.4-1_all.deb ... 79s Unpacking python3-nbclient (0.10.4-1) ... 79s Selecting previously unselected package python3-pandocfilters. 79s Preparing to unpack .../79-python3-pandocfilters_1.5.1-1_all.deb ... 79s Unpacking python3-pandocfilters (1.5.1-1) ... 79s Selecting previously unselected package python3-nbconvert. 79s Preparing to unpack .../80-python3-nbconvert_7.16.6-1_all.deb ... 79s Unpacking python3-nbconvert (7.16.6-1) ... 79s Selecting previously unselected package python3-prometheus-client. 79s Preparing to unpack .../81-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 79s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 79s Selecting previously unselected package python3-send2trash. 79s Preparing to unpack .../82-python3-send2trash_1.8.3-1_all.deb ... 79s Unpacking python3-send2trash (1.8.3-1) ... 79s Selecting previously unselected package python3-notebook. 79s Preparing to unpack .../83-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 79s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 80s Selecting previously unselected package jupyter-notebook. 80s Preparing to unpack .../84-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 80s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 80s Selecting previously unselected package sphinx-rtd-theme-common. 80s Preparing to unpack .../85-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 80s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 80s Selecting previously unselected package python-notebook-doc. 80s Preparing to unpack .../86-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 80s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 80s Selecting previously unselected package python3-all. 80s Preparing to unpack .../87-python3-all_3.14.2-1_ppc64el.deb ... 80s Unpacking python3-all (3.14.2-1) ... 80s Selecting previously unselected package python3-iniconfig. 80s Preparing to unpack .../88-python3-iniconfig_2.1.0-2_all.deb ... 80s Unpacking python3-iniconfig (2.1.0-2) ... 80s Selecting previously unselected package python3-pluggy. 80s Preparing to unpack .../89-python3-pluggy_1.6.0-2_all.deb ... 80s Unpacking python3-pluggy (1.6.0-2) ... 80s Selecting previously unselected package python3-pytest. 80s Preparing to unpack .../90-python3-pytest_9.0.2-2_all.deb ... 80s Unpacking python3-pytest (9.0.2-2) ... 80s Selecting previously unselected package python3-requests-unixsocket. 80s Preparing to unpack .../91-python3-requests-unixsocket_1.0.1-1_all.deb ... 80s Unpacking python3-requests-unixsocket (1.0.1-1) ... 80s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 80s Setting up python3-iniconfig (2.1.0-2) ... 80s Setting up python3-tornado (6.5.4-0.1) ... 81s Setting up libnorm1t64:ppc64el (1.5.9+dfsg-4) ... 81s Setting up python3-pure-eval (0.2.3-1) ... 81s Setting up python3-send2trash (1.8.3-1) ... 81s Setting up fonts-lato (2.015-1build1) ... 81s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 81s Setting up libsodium23:ppc64el (1.0.18-2) ... 81s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 81s Setting up libjs-requirejs-text (2.0.12-2) ... 81s Setting up python3-parso (0.8.5-1) ... 81s Setting up python3-defusedxml (0.7.1-3build1) ... 81s Setting up python3-ipython-genutils (0.2.0-7) ... 82s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 82s Setting up libargon2-1:ppc64el (0~20190702+dfsg-5) ... 82s Setting up python3-ply (3.11-10) ... 82s Setting up libjs-moment (2.29.4+ds-1) ... 82s Setting up python3-pandocfilters (1.5.1-1) ... 82s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 82s Setting up libjs-es6-promise (4.2.8-12) ... 82s Setting up libjs-text-encoding (0.7.0-5) ... 82s Setting up python3-webencodings (0.5.1-5build1) ... 82s Setting up python3-platformdirs (4.5.1-1) ... 83s Setting up python3-psutil (7.1.0-1ubuntu1) ... 83s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 83s Setting up python3-pycparser (2.23-1build1) ... 84s Setting up python3-requests-unixsocket (1.0.1-1) ... 84s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 84s Setting up libpgm-5.3-0t64:ppc64el (5.3.128~dfsg-2.1build2) ... 84s Setting up python3-decorator (5.2.1-2) ... 84s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 84s Setting up node-jed (1.1.1-4) ... 84s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 84s Setting up libjs-xterm (5.3.0-4) ... 84s Setting up python3-nest-asyncio (1.6.0-1) ... 84s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 84s Setting up libjs-jed (1.1.1-4) ... 84s Setting up python3-html5lib (1.2-3) ... 85s Setting up libbabeltrace1:ppc64el (1.5.11-5) ... 85s Setting up python3-pluggy (1.6.0-2) ... 85s Setting up python3-fastjsonschema (2.21.1-1) ... 85s Setting up python3-terminado (0.18.1-1) ... 85s Setting up python3-astroid (4.0.2-1ubuntu1) ... 86s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 86s Setting up python-tinycss2-common (1.5.1-1) ... 86s Setting up python3.13-minimal (3.13.11-1) ... 87s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 87s Setting up python3-mistune (3.1.4-1) ... 88s Setting up python3-soupsieve (2.8.1-1) ... 88s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 88s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 88s Setting up python3-jupyter-core (5.9.1-1) ... 88s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 88s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 88s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 88s Setting up python3-prompt-toolkit (3.0.52-2) ... 89s Setting up python3-tinycss2 (1.5.1-1) ... 89s Setting up libzmq5:ppc64el (4.3.5-1build3) ... 89s Setting up python3-jedi (0.19.1+ds1-1build1) ... 89s Setting up python3.13 (3.13.11-1) ... 91s Setting up python3-asttokens (3.0.1-1) ... 91s Setting up python3-pytest (9.0.2-2) ... 92s Setting up python3-cffi (2.0.0-2) ... 92s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 92s Setting up python3-all (3.14.2-1) ... 92s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 93s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 93s Setting up libsource-highlight4t64:ppc64el (3.1.9-4.3build2) ... 93s Setting up python3-nbformat (5.10.4-1) ... 93s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 93s Setting up python3-bs4 (4.14.3-2build1) ... 93s Setting up python3-bleach (6.3.0-1) ... 93s Setting up python3-matplotlib-inline (0.2.1-1) ... 93s Setting up python3-comm (0.2.1-1build1) ... 94s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 94s Setting up gdb (16.3-5ubuntu1) ... 94s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 94s Setting up python3-executing (2.2.1-0.1) ... 94s Setting up python3-zmq (27.1.0-1) ... 94s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 94s Setting up python3-argon2 (25.1.0-2) ... 95s Setting up python3-jupyter-client (8.7.0-1) ... 95s Setting up jupyter-core (5.9.1-1) ... 95s Setting up python3-stack-data (0.6.3-3) ... 95s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 96s Setting up python3-nbclient (0.10.4-1) ... 96s Setting up python3-ipython (8.35.0-2) ... 97s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 97s return result 97s Setting up python3-ipykernel (6.30.1-1) ... 98s Setting up python3-nbconvert (7.16.6-1) ... 98s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 99s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 99s Processing triggers for systemd (259-1ubuntu2) ... 99s Processing triggers for man-db (2.13.1-1) ... 99s Processing triggers for libc-bin (2.42-2ubuntu4) ... 101s autopkgtest [18:36:12]: test pytest: [----------------------- 101s Testing with python3.13 101s *** 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 106s ============================= test session starts ============================== 106s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 106s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 106s plugins: typeguard-4.4.4 106s collected 330 items / 6 deselected / 324 selected 106s 106s auth/tests/test_login.py .. [ 0%] 107s auth/tests/test_security.py .... [ 1%] 107s bundler/tests/test_bundler_api.py ..... [ 3%] 107s bundler/tests/test_bundler_tools.py ............. [ 7%] 107s bundler/tests/test_bundlerextension.py ... [ 8%] 107s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 107s services/api/tests/test_api.py ... [ 11%] 107s services/config/tests/test_config_api.py ... [ 12%] 108s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 109s ................s...........ss..s......................... [ 38%] 110s services/contents/tests/test_fileio.py ... [ 39%] 110s services/contents/tests/test_largefilemanager.py . [ 39%] 111s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 112s .... [ 50%] 123s services/kernels/tests/test_kernels_api.py ........... [ 54%] 123s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 124s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 124s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 130s services/sessions/tests/test_sessions_api.py ...................... [ 66%] 134s terminal/tests/test_terminals_api.py ........ [ 68%] 134s tests/test_config_manager.py . [ 68%] 134s tests/test_files.py ..... [ 70%] 134s tests/test_gateway.py ...... [ 72%] 134s tests/test_i18n.py . [ 72%] 134s tests/test_log.py . [ 72%] 135s tests/test_nbextensions.py ................................... [ 83%] 136s tests/test_notebookapp.py .......................... [ 91%] 136s tests/test_paths.py ... [ 92%] 136s tests/test_serialize.py .. [ 93%] 136s tests/test_serverextensions.py ..... [ 94%] 136s tests/test_traittypes.py ........... [ 98%] 137s tests/test_utils.py ....s [ 99%] 138s tree/tests/test_tree_handler.py . [100%] 138s 138s =============================== warnings summary =============================== 138s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 138s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 138s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 138s return LooseVersion(v) >= LooseVersion(check) 138s 138s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 138s auth/tests/test_login.py: 2 warnings 138s bundler/tests/test_bundler_api.py: 2 warnings 138s services/api/tests/test_api.py: 4 warnings 138s services/config/tests/test_config_api.py: 7 warnings 138s services/contents/tests/test_contents_api.py: 318 warnings 138s services/kernels/tests/test_kernels_api.py: 108 warnings 138s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 138s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 138s services/sessions/tests/test_sessionmanager.py: 9 warnings 138s services/sessions/tests/test_sessions_api.py: 128 warnings 138s terminal/tests/test_terminals_api.py: 50 warnings 138s tests/test_files.py: 2 warnings 138s tests/test_gateway.py: 21 warnings 138s tests/test_notebookapp.py: 8 warnings 138s tests/test_paths.py: 2 warnings 138s tree/tests/test_tree_handler.py: 2 warnings 138s /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). 138s dt = unaware(*args, **kwargs) 138s 138s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 138s /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 138s pytestmark = pytest.mark.integration_tests 138s 138s bundler/tests/test_bundler_api.py: 6 warnings 138s services/api/tests/test_api.py: 6 warnings 138s services/contents/tests/test_contents_api.py: 806 warnings 138s services/contents/tests/test_largefilemanager.py: 42 warnings 138s services/contents/tests/test_manager.py: 526 warnings 138s tests/test_files.py: 8 warnings 138s tree/tests/test_tree_handler.py: 6 warnings 138s /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). 138s dt = unaware(*args, **kwargs) 138s 138s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 138s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 138s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 138s loop.make_current() 138s 138s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 138s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 138s /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/tmpfew_6hpw/data/kernels/sample 2 138s d = self.find_kernel_specs() 138s 138s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 138s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: 138s 138s Traceback (most recent call last): 138s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 68, in __del__ 138s self.close() 138s ~~~~~~~~~~^^ 138s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 63, in close 138s self._cursor.close() 138s ~~~~~~~~~~~~~~~~~~^^ 138s sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 109012472251520 and this is thread id 109012327002368. 138s 138s Enable tracemalloc to get traceback where the object was allocated. 138s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 138s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 138s 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 138s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 138s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 138s /usr/lib/python3.13/pty.py:95: DeprecationWarning: This process (pid=3676) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 138s pid, fd = os.forkpty() 138s 138s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 138s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 138s /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). 138s dt = datetime.utcnow().isoformat() + 'Z' 138s 138s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 138s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 138s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 138s /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. 138s archive.extractall(nbext) 138s 138s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 138s =========================== short test summary info ============================ 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 138s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 138s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 138s ======== 304 passed, 20 skipped, 6 deselected, 2095 warnings in 36.84s ========= 139s *** END OF RUN 1: ALL TESTS RUN HAVE NOW PASSED/XFAILED *** 139s Testing with python3.14 139s *** 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 143s ============================= test session starts ============================== 143s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 143s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 143s plugins: typeguard-4.4.4 143s collected 330 items / 6 deselected / 324 selected 143s 143s auth/tests/test_login.py .. [ 0%] 144s auth/tests/test_security.py .... [ 1%] 144s bundler/tests/test_bundler_api.py ..... [ 3%] 144s bundler/tests/test_bundler_tools.py ............. [ 7%] 144s bundler/tests/test_bundlerextension.py ... [ 8%] 144s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 144s services/api/tests/test_api.py ... [ 11%] 144s services/config/tests/test_config_api.py ... [ 12%] 145s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 146s ................s...........ss..s......................... [ 38%] 147s services/contents/tests/test_fileio.py ... [ 39%] 147s services/contents/tests/test_largefilemanager.py . [ 39%] 147s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 148s .... [ 50%] 158s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 158s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 159s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 160s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 161s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 161s F [ 66%] 165s terminal/tests/test_terminals_api.py ........ [ 68%] 165s tests/test_config_manager.py . [ 68%] 166s tests/test_files.py ..... [ 70%] 166s tests/test_gateway.py ...... [ 72%] 166s tests/test_i18n.py . [ 72%] 166s tests/test_log.py . [ 72%] 167s tests/test_nbextensions.py ................................... [ 83%] 168s tests/test_notebookapp.py .......................... [ 91%] 168s tests/test_paths.py ... [ 92%] 168s tests/test_serialize.py .. [ 93%] 169s tests/test_serverextensions.py ..... [ 94%] 169s tests/test_traittypes.py ........... [ 98%] 169s tests/test_utils.py ....s [ 99%] 170s tree/tests/test_tree_handler.py . [100%] 170s 170s ==================================== ERRORS ==================================== 170s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 170s from pathlib import Path 170s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 170s from glob import _StringGlobber, _no_recurse_symlinks 170s File "/usr/lib/python3.14/glob.py", line 3, in 170s import contextlib 170s File "/usr/lib/python3.14/contextlib.py", line 6, in 170s from collections import deque 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 511, in _compile_bytecode 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-d44b5668-2d6c-4751-bf14-7b949b3c43a2.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33007 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39197 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: d44b5668-2d6c-4751-bf14-7b949b3c43a2, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.240000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.700000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-4d9a81e3-3e1c-4285-9d70-023f897a1567.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57221 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41479 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4d9a81e3-3e1c-4285-9d70-023f897a1567, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.230000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.830000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 4d9a81e3-3e1c-4285-9d70-023f897a1567 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567/interrupt (::1) 0.650000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567/restart (::1) 9.410000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d44b5668-2d6c-4751-bf14-7b949b3c43a2 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d44b5668-2d6c-4751-bf14-7b949b3c43a2 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 170s yielded = ctx_run(next, result) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 170s import jupyter_client 170s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 170s from .asynchronous import AsyncKernelClient 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 170s from .client import AsyncKernelClient # noqa 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 170s import zmq.asyncio 170s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 170s import asyncio 170s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 170s from .base_events import * 170s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 170s import concurrent.futures 170s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 170s from concurrent.futures._base import (FIRST_COMPLETED, 170s ...<9 lines>... 170s as_completed) 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 170s import logging 170s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 170s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 170s File "/usr/lib/python3.14/traceback.py", line 12, in 170s import _colorize 170s File "/usr/lib/python3.14/_colorize.py", line 157, in 170s @dataclass(frozen=True, kw_only=True) 170s ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 170s return _process_class(cls, init, repr, eq, order, unsafe_hash, 170s frozen, match_args, kw_only, slots, 170s weakref_slot) 170s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 170s func_builder.add_fns_to_class(cls) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 170s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 170s exec(txt, self.globals, ns) 170s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 170s File "", line 0, in 170s KeyboardInterrupt 170s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 170s 170s self = 170s 170s def tearDown(self): 170s for k in self.kern_api.list().json(): 170s > self.kern_api.shutdown(k['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 170s import jupyter_client 170s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 170s from .asynchronous import AsyncKernelClient 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 170s from .client import AsyncKernelClient # noqa 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 170s import zmq.asyncio 170s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 170s import asyncio 170s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 170s from .base_events import * 170s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 170s import concurrent.futures 170s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 170s from concurrent.futures._base import (FIRST_COMPLETED, 170s ...<9 lines>... 170s as_completed) 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 170s import logging 170s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 170s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 170s File "/usr/lib/python3.14/traceback.py", line 12, in 170s import _colorize 170s File "/usr/lib/python3.14/_colorize.py", line 5, in 170s from dataclasses import dataclass, field, Field 170s File "/usr/lib/python3.14/dataclasses.py", line 222, in 170s _MODULE_IDENTIFIER_RE = re.compile(r'^(?:\s*(\w+)\s*\.)?\s*(\w+)') 170s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 170s return _compile(pattern, flags) 170s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 170s p = _compiler.compile(pattern, flags) 170s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 170s p = _parser.parse(p, flags) 170s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 170s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 170s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 170s itemsappend(_parse(source, state, verbose, nested + 1, 170s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s not nested and not items)) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 170s p = _parse_sub(source, state, sub_verbose, nested + 1) 170s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 170s itemsappend(_parse(source, state, verbose, nested + 1, 170s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s not nested and not items)) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/re/_parser.py", line 544, in _parse 170s code = _escape(source, this, state) 170s File "/usr/lib/python3.14/re/_parser.py", line 372, in _escape 170s def _escape(source, escape, state): 170s 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-610c64ad-7a56-4033-a917-f2d710598c2f.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36391 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41597 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 610c64ad-7a56-4033-a917-f2d710598c2f, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.000000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-ee737dd5-8c24-48a3-b5c9-fa5f471affa5.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58659 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54423 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee737dd5-8c24-48a3-b5c9-fa5f471affa5, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.500000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ee737dd5-8c24-48a3-b5c9-fa5f471affa5 170s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5/interrupt (::1) 1.790000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 170s yield maybe_future(km.restart_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 170s result = coro.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 170s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 170s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 170s yield self # This tells Task to wait for completion. 170s ^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 170s await ensure_async(kernel.restart_kernel(now=now)) 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 170s await self._async_shutdown_kernel(now=now, restart=True) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5/restart (::1) 8.550000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 610c64ad-7a56-4033-a917-f2d710598c2f 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 610c64ad-7a56-4033-a917-f2d710598c2f 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 170s future.result() 170s ~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 170s yield maybe_future(km.shutdown_kernel(kernel_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 170s raise self._exception.with_traceback(self._exception_tb) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 170s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 170s raise km.ready.exception() # type: ignore[misc] 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 170s await kernel_awaitable 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 170s result = await obj 170s ^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 170s from pathlib import Path 170s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 170s from glob import _StringGlobber, _no_recurse_symlinks 170s File "/usr/lib/python3.14/glob.py", line 5, in 170s import re 170s File "/usr/lib/python3.14/re/__init__.py", line 126, in 170s from . import _compiler, _parser 170s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 170s from . import _parser 170s File "", line 1371, in _find_and_load 170s File "", line 1342, in _find_and_load_unlocked 170s File "", line 938, in _load_unlocked 170s File "", line 755, in exec_module 170s File "", line 888, in get_code 170s File "", line 509, in _compile_bytecode 170s KeyboardInterrupt 170s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d1e81a03-7693-490a-b853-8d03364b8b6e 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-6af4d27f-d6df-4784-98b4-a59e25f84e5c.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55313 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59831 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6af4d27f-d6df-4784-98b4-a59e25f84e5c, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad42cc1e-8db1-4838-8d61-3e8cac4f2995 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad42cc1e-8db1-4838-8d61-3e8cac4f2995 170s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1a7bbf10-d102-434a-9665-ee00da6148f2 (::1) 0.760000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6af4d27f-d6df-4784-98b4-a59e25f84e5c 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6af4d27f-d6df-4784-98b4-a59e25f84e5c 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d1e81a03-7693-490a-b853-8d03364b8b6e (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d1e81a03-7693-490a-b853-8d03364b8b6e', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 170s 170s @self.addCleanup 170s def cleanup_sessions(): 170s for session in self.sess_api.list().json(): 170s > self.sess_api.delete(session['id']) 170s 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 170s return self._req('DELETE', id) 170s ^^^^^^^^^^^^^^^^^^^^^^^ 170s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 170s response.raise_for_status() 170s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 170s 170s self = 170s 170s def raise_for_status(self): 170s """Raises :class:`HTTPError`, if one occurred.""" 170s 170s http_error_msg = "" 170s if isinstance(self.reason, bytes): 170s # We attempt to decode utf-8 first because some servers 170s # choose to localize their reason strings. If the string 170s # isn't utf-8, we fall back to iso-8859-1 for all other 170s # encodings. (See PR #3538) 170s try: 170s reason = self.reason.decode("utf-8") 170s except UnicodeDecodeError: 170s reason = self.reason.decode("iso-8859-1") 170s else: 170s reason = self.reason 170s 170s if 400 <= self.status_code < 500: 170s http_error_msg = ( 170s f"{self.status_code} Client Error: {reason} for url: {self.url}" 170s ) 170s 170s elif 500 <= self.status_code < 600: 170s http_error_msg = ( 170s f"{self.status_code} Server Error: {reason} for url: {self.url}" 170s ) 170s 170s if http_error_msg: 170s > raise HTTPError(http_error_msg, response=self) 170s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 170s 170s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 170s ----------------------------- Captured stderr call ----------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 170s import jupyter_client 170s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 170s from .asynchronous import AsyncKernelClient 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 170s from .client import AsyncKernelClient # noqa 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 170s import zmq.asyncio 170s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 170s from zmq import backend 170s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 170s _ns = select_backend(first) 170s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 170s mod = import_module(name) 170s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 170s return _bootstrap._gcd_import(name[level:], package, level) 170s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 170s from . import _zmq 170s File "", line 648, in parent 170s KeyboardInterrupt 170s ------------------------------ Captured log call ------------------------------- 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-d1ae628d-19be-4e3c-bc97-32ded3fc71d4.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59271 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51105 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: d1ae628d-19be-4e3c-bc97-32ded3fc71d4, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.630000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 170s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-979971d9-9c6c-46bd-b36e-e4cce3c2bc86.json'] 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42677 170s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56567 170s INFO NotebookApp:kernelmanager.py:179 Kernel started: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86, name: python3 170s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 170s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.410000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1ae628d-19be-4e3c-bc97-32ded3fc71d4 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1ae628d-19be-4e3c-bc97-32ded3fc71d4 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 170s km.shutdown_kernel(before['kernel']['id']) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 15.950000ms referer=None 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 170s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 170s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 170s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 170s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 170s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 170s Traceback (most recent call last): 170s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 170s result = await result 170s ^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 170s yielded = self.gen.throw(exc) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 170s yield maybe_future(sm.delete_session(session_id)) 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 170s value = future.result() 170s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 170s yielded = self.gen.send(value) 170s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 170s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 170s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 170s stopper = ensure_async(km.shutdown_kernel(now, restart)) 170s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 170s return _runner_map[name].run(inner) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 170s return fut.result(None) 170s ~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 170s return self.__get_result() 170s ~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 170s raise self._exception 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 170s result = coro.send(None) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 170s raise e 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 170s out = await method(self, *args, **kwargs) 170s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 170s await self._async_finish_shutdown(restart=restart) 170s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 170s await asyncio.wait_for( 170s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 170s ) 170s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 170s async with timeouts.timeout(timeout): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^ 170s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 170s raise RuntimeError("Timeout should be used inside a task") 170s RuntimeError: Timeout should be used inside a task 170s WARNING NotebookApp:handlers.py:612 Unhandled error 170s ERROR NotebookApp:log.py:55 { 170s "Host": "localhost:12341", 170s "Accept": "*/*", 170s "User-Agent": "python-requests/2.32.5" 170s } 170s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 13.680000ms referer=None 170s --------------------------- Captured stderr teardown --------------------------- 170s Traceback (most recent call last): 170s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 170s return _run_code(code, main_globals, None, 170s "__main__", mod_spec) 170s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 170s exec(code, run_globals) 170s ~~~~^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 170s from ipykernel import kernelapp as app 170s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 170s from .connect import * # noqa: F403 170s ^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 170s import json 170s File "/usr/lib/python3.14/json/__init__.py", line 107, in 170s from .encoder import JSONEncoder 170s File "", line 1368, in _find_and_load 170s File "", line 421, in __enter__ 170s File "", line 316, in acquire 171s KeyboardInterrupt 171s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.010000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-b7daacfb-1889-4965-8481-6a9de67dcc28.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48171 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48825 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7daacfb-1889-4965-8481-6a9de67dcc28, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 14.580000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.870000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7daacfb-1889-4965-8481-6a9de67dcc28 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7daacfb-1889-4965-8481-6a9de67dcc28 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-f200d9c3-419a-4dba-839d-16c4e0b9973f.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51021 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47517 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: f200d9c3-419a-4dba-839d-16c4e0b9973f, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.750000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b80387f-72ea-4303-9b2c-0ef995800505 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b80387f-72ea-4303-9b2c-0ef995800505 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b (::1) 1.210000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f200d9c3-419a-4dba-839d-16c4e0b9973f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f200d9c3-419a-4dba-839d-16c4e0b9973f 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0 (::1) 7.360000ms referer=None 171s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 171s import jupyter_client 171s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 171s from .asynchronous import AsyncKernelClient 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 171s from .client import AsyncKernelClient # noqa 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 171s import zmq.asyncio 171s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 171s from zmq import backend 171s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 171s _ns = select_backend(first) 171s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 171s mod = import_module(name) 171s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 171s return _bootstrap._gcd_import(name[level:], package, level) 171s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 171s from . import _zmq 171s File "", line 648, in parent 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-fc780e1f-eac0-4a9f-9316-0127350fa8d3.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52203 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45007 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc780e1f-eac0-4a9f-9316-0127350fa8d3, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.340000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-7b92d787-2c13-4b87-8224-ad42cfab1b6b.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43255 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48757 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b92d787-2c13-4b87-8224-ad42cfab1b6b, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.700000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc780e1f-eac0-4a9f-9316-0127350fa8d3 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc780e1f-eac0-4a9f-9316-0127350fa8d3 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 171s yield maybe_future( 171s km.shutdown_kernel(before['kernel']['id']) 171s ) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 16.700000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 8.560000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 171s from subprocess import PIPE, Popen 171s File "/usr/lib/python3.14/subprocess.py", line 49, in 171s import signal 171s File "/usr/lib/python3.14/signal.py", line 7, in 171s _IntEnum._convert_( 171s ~~~~~~~~~~~~~~~~~~^ 171s 'Signals', __name__, 171s ^^^^^^^^^^^^^^^^^^^^ 171s ...<2 lines>... 171s and (name.startswith('SIG') and not name.startswith('SIG_')) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s or name.startswith('CTRL_')) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 171s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 171s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 171s setattr(enum_class, name, member) 171s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 171s def __setattr__(cls, name, value): 171s 171s KeyboardInterrupt 171s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.820000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-0805e222-d8db-46d9-a145-04339d244325.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57447 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46301 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0805e222-d8db-46d9-a145-04339d244325, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 14.620000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0805e222-d8db-46d9-a145-04339d244325 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0805e222-d8db-46d9-a145-04339d244325 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 6.940000ms referer=None 171s =================================== FAILURES =================================== 171s ______________________ KernelAPITest.test_default_kernel _______________________ 171s 171s self = 171s 171s def tearDown(self): 171s for k in self.kern_api.list().json(): 171s > self.kern_api.shutdown(k['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/37cecca7-d13a-4570-9289-b83a9217e697 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log setup ------------------------------ 171s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpc8eiz81_/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpc8eiz81_/etc/jupyter'] for config files 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc8eiz81_/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc8eiz81_/config 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc8eiz81_/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc8eiz81_/config 171s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpc8eiz81_/notebooks 171s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 171s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 171s WARNING NotebookApp:handlers.py:612 Forbidden 171s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.470000ms referer=None 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-37cecca7-d13a-4570-9289-b83a9217e697.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47389 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51465 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37cecca7-d13a-4570-9289-b83a9217e697, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 63.690000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37cecca7-d13a-4570-9289-b83a9217e697 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37cecca7-d13a-4570-9289-b83a9217e697 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37cecca7-d13a-4570-9289-b83a9217e697 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37cecca7-d13a-4570-9289-b83a9217e697', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 171s yielded = ctx_run(next, result) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37cecca7-d13a-4570-9289-b83a9217e697 (::1) 9.340000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 143, in 171s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 171s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/enum.py", line 1820, in convert_class 171s contained = value2member_map.get(member._value_) 171s KeyboardInterrupt 171s ______________________ KernelAPITest.test_kernel_handler _______________________ 171s 171s self = 171s 171s def test_kernel_handler(self): 171s # GET kernel with given id 171s kid = self.kern_api.start().json()['id'] 171s r = self.kern_api.get(kid) 171s kern1 = r.json() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(kern1, dict) 171s self.assertIn('id', kern1) 171s self.assertEqual(kern1['id'], kid) 171s 171s # Request a bad kernel id and check that a JSON 171s # message is returned! 171s bad_id = '111-111-111-111-111' 171s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 171s self.kern_api.get(bad_id) 171s 171s # DELETE kernel with id 171s > r = self.kern_api.shutdown(kid) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ed3aae91-4438-42c5-b57c-e4c8360272e6 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-ed3aae91-4438-42c5-b57c-e4c8360272e6.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33853 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41085 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: ed3aae91-4438-42c5-b57c-e4c8360272e6, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.690000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ed3aae91-4438-42c5-b57c-e4c8360272e6 (::1) 1.690000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s 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 171s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 171s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.570000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed3aae91-4438-42c5-b57c-e4c8360272e6 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed3aae91-4438-42c5-b57c-e4c8360272e6 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ed3aae91-4438-42c5-b57c-e4c8360272e6 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ed3aae91-4438-42c5-b57c-e4c8360272e6', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 171s yielded = ctx_run(next, result) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ed3aae91-4438-42c5-b57c-e4c8360272e6 (::1) 7.750000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.700000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37cecca7-d13a-4570-9289-b83a9217e697 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37cecca7-d13a-4570-9289-b83a9217e697 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/37cecca7-d13a-4570-9289-b83a9217e697 (::1) 0.620000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed3aae91-4438-42c5-b57c-e4c8360272e6 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed3aae91-4438-42c5-b57c-e4c8360272e6 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "/usr/lib/python3.14/re/_parser.py", line 15, in 171s from ._constants import * 171s File "/usr/lib/python3.14/re/_constants.py", line 23, in 171s class PatternError(Exception): 171s ...<29 lines>... 171s super().__init__(msg) 171s KeyboardInterrupt 171s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 171s 171s self = 171s 171s def test_main_kernel_handler(self): 171s # POST request 171s r = self.kern_api.start() 171s kern1 = r.json() 171s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 171s self.assertEqual(r.status_code, 201) 171s self.assertIsInstance(kern1, dict) 171s 171s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 171s expected_csp = '; '.join([ 171s "frame-ancestors 'self'", 171s 'report-uri ' + report_uri, 171s "default-src 'none'" 171s ]) 171s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 171s 171s # GET request 171s r = self.kern_api.list() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(r.json(), list) 171s self.assertEqual(r.json()[0]['id'], kern1['id']) 171s self.assertEqual(r.json()[0]['name'], kern1['name']) 171s 171s # create another kernel and check that they both are added to the 171s # list of kernels from a GET request 171s kern2 = self.kern_api.start().json() 171s assert isinstance(kern2, dict) 171s r = self.kern_api.list() 171s kernels = r.json() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(kernels, list) 171s self.assertEqual(len(kernels), 2) 171s 171s # Interrupt a kernel 171s r = self.kern_api.interrupt(kern2['id']) 171s self.assertEqual(r.status_code, 204) 171s 171s # Restart a kernel 171s > r = self.kern_api.restart(kern2['id']) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 171s return self._req('POST', url_path_join(id, 'restart')) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567/restart 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 3, in 171s import contextlib 171s File "/usr/lib/python3.14/contextlib.py", line 6, in 171s from collections import deque 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 938, in _load_unlocked 171s File "", line 755, in exec_module 171s File "", line 888, in get_code 171s File "", line 511, in _compile_bytecode 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-d44b5668-2d6c-4751-bf14-7b949b3c43a2.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33007 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39197 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: d44b5668-2d6c-4751-bf14-7b949b3c43a2, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.240000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.700000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc8eiz81_/runtime/kernel-4d9a81e3-3e1c-4285-9d70-023f897a1567.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57221 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41479 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4d9a81e3-3e1c-4285-9d70-023f897a1567, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.230000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.830000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 4d9a81e3-3e1c-4285-9d70-023f897a1567 171s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567/interrupt (::1) 0.650000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 171s yield maybe_future(km.restart_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 171s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 171s await ensure_async(kernel.restart_kernel(now=now)) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 171s await self._async_shutdown_kernel(now=now, restart=True) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567/restart (::1) 9.410000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d44b5668-2d6c-4751-bf14-7b949b3c43a2 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d44b5668-2d6c-4751-bf14-7b949b3c43a2 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 171s yielded = ctx_run(next, result) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ________________________ KernelAPITest.test_no_kernels _________________________ 171s 171s self = 171s 171s def test_no_kernels(self): 171s """Make sure there are no kernels running at the start""" 171s kernels = self.kern_api.list().json() 171s > self.assertEqual(kernels, []) 171s E AssertionError: Lists differ: [{'id': 'd44b5668-2d6c-4751-bf14-7b949b3c4[281 chars]: 0}] != [] 171s E 171s E First list contains 2 additional elements. 171s E First extra element 0: 171s E {'id': 'd44b5668-2d6c-4751-bf14-7b949b3c43a2', 'name': 'python3', 'last_activity': '2026-01-22T18:36:59.316191Z', 'execution_state': 'starting', 'connections': 0} 171s E 171s E + [] 171s E - [{'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': 'd44b5668-2d6c-4751-bf14-7b949b3c43a2', 171s E - 'last_activity': '2026-01-22T18:36:59.316191Z', 171s E - 'name': 'python3'}, 171s E - {'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': '4d9a81e3-3e1c-4285-9d70-023f897a1567', 171s E - 'last_activity': '2026-01-22T18:36:59.336128Z', 171s E - 'name': 'python3'}] 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d44b5668-2d6c-4751-bf14-7b949b3c43a2 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d44b5668-2d6c-4751-bf14-7b949b3c43a2 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d44b5668-2d6c-4751-bf14-7b949b3c43a2 (::1) 0.650000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4d9a81e3-3e1c-4285-9d70-023f897a1567 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4d9a81e3-3e1c-4285-9d70-023f897a1567 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4d9a81e3-3e1c-4285-9d70-023f897a1567 (::1) 1.340000ms 171s ---------------------------- Captured log teardown ----------------------------- 171s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 171s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 171s _____________________ AsyncKernelAPITest.test_connections ______________________ 171s 171s self = 171s 171s def tearDown(self): 171s for k in self.kern_api.list().json(): 171s > self.kern_api.shutdown(k['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log setup ------------------------------ 171s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpc2arkj6k/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpc2arkj6k/etc/jupyter'] for config files 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc2arkj6k/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc2arkj6k/config 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc2arkj6k/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc2arkj6k/config 171s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpc2arkj6k/notebooks 171s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 171s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 171s WARNING NotebookApp:handlers.py:612 Forbidden 171s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-268fad21-6ad0-4674-a0c9-e0c0c059380c.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56505 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56747 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 268fad21-6ad0-4674-a0c9-e0c0c059380c, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.400000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.490000ms 171s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c/channels 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 171s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35079 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (starting) 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (busy) 171s 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/'}]} 171s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 268fad21-6ad0-4674-a0c9-e0c0c059380c) to 5.4 (client). 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (idle) 171s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c/channels (::1) 569.370000ms 171s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c/channels 171s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56747 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35079 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56505 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51089 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35079 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56505 171s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 171s Setting websocket_ping_timeout=30000 171s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.520000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.440000ms 171s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (busy) 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (busy) 171s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (idle) 171s DEBUG NotebookApp:handlers.py:579 Websocket closed 268fad21-6ad0-4674-a0c9-e0c0c059380c:174419ad-41471f611de40a10da64590e 171s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 268fad21-6ad0-4674-a0c9-e0c0c059380c:174419ad-41471f611de40a10da64590e 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 268fad21-6ad0-4674-a0c9-e0c0c059380c:iopub 171s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 268fad21-6ad0-4674-a0c9-e0c0c059380c:iopub 171s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 268fad21-6ad0-4674-a0c9-e0c0c059380c:iopub 171s DEBUG NotebookApp:kernelmanager.py:423 activity on 268fad21-6ad0-4674-a0c9-e0c0c059380c: status (idle) 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.560000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 268fad21-6ad0-4674-a0c9-e0c0c059380c:174419ad-41471f611de40a10da64590e 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 6.480000ms referer=None 171s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 171s 171s self = 171s 171s def tearDown(self): 171s for k in self.kern_api.list().json(): 171s > self.kern_api.shutdown(k['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-a00e55fc-d74c-4746-b7af-a25aaaa4a5de.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34435 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37193 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: a00e55fc-d74c-4746-b7af-a25aaaa4a5de, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.950000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/268fad21-6ad0-4674-a0c9-e0c0c059380c (::1) 0.650000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a00e55fc-d74c-4746-b7af-a25aaaa4a5de (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a00e55fc-d74c-4746-b7af-a25aaaa4a5de', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a00e55fc-d74c-4746-b7af-a25aaaa4a5de (::1) 10.380000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "", line 1371, in _find_and_load 171s File "", line 1335, in _find_and_load_unlocked 171s ModuleNotFoundError: No module named 'nt' 171s 171s During handling of the above exception, another exception occurred: 171s 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 171s class PureWindowsPath(PurePath): 171s ...<7 lines>... 171s __slots__ = () 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 171s import ntpath 171s File "/usr/lib/python3.14/ntpath.py", line 277, in 171s from nt import _getvolumepathname 171s File "", line 1368, in _find_and_load 171s File "", line 424, in __exit__ 171s File "", line 374, in release 171s KeyboardInterrupt 171s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 171s 171s self = 171s 171s def test_kernel_handler(self): 171s # GET kernel with given id 171s kid = self.kern_api.start().json()['id'] 171s r = self.kern_api.get(kid) 171s kern1 = r.json() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(kern1, dict) 171s self.assertIn('id', kern1) 171s self.assertEqual(kern1['id'], kid) 171s 171s # Request a bad kernel id and check that a JSON 171s # message is returned! 171s bad_id = '111-111-111-111-111' 171s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 171s self.kern_api.get(bad_id) 171s 171s # DELETE kernel with id 171s > r = self.kern_api.shutdown(kid) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-6dea0674-c208-4229-bd65-d06a6d55f3c2.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54777 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41681 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dea0674-c208-4229-bd65-d06a6d55f3c2, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.040000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2 (::1) 4.120000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s 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 171s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 171s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.590000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dea0674-c208-4229-bd65-d06a6d55f3c2 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dea0674-c208-4229-bd65-d06a6d55f3c2 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2 (::1) 7.560000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a00e55fc-d74c-4746-b7af-a25aaaa4a5de (::1) 1.740000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dea0674-c208-4229-bd65-d06a6d55f3c2 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dea0674-c208-4229-bd65-d06a6d55f3c2 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6dea0674-c208-4229-bd65-d06a6d55f3c2 (::1) 0.550000ms 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 143, in 171s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 171s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/enum.py", line 1820, in convert_class 171s contained = value2member_map.get(member._value_) 171s KeyboardInterrupt 171s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 171s 171s self = 171s 171s def test_main_kernel_handler(self): 171s # POST request 171s r = self.kern_api.start() 171s kern1 = r.json() 171s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 171s self.assertEqual(r.status_code, 201) 171s self.assertIsInstance(kern1, dict) 171s 171s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 171s expected_csp = '; '.join([ 171s "frame-ancestors 'self'", 171s 'report-uri ' + report_uri, 171s "default-src 'none'" 171s ]) 171s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 171s 171s # GET request 171s r = self.kern_api.list() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(r.json(), list) 171s self.assertEqual(r.json()[0]['id'], kern1['id']) 171s self.assertEqual(r.json()[0]['name'], kern1['name']) 171s 171s # create another kernel and check that they both are added to the 171s # list of kernels from a GET request 171s kern2 = self.kern_api.start().json() 171s assert isinstance(kern2, dict) 171s r = self.kern_api.list() 171s kernels = r.json() 171s self.assertEqual(r.status_code, 200) 171s assert isinstance(kernels, list) 171s self.assertEqual(len(kernels), 2) 171s 171s # Interrupt a kernel 171s r = self.kern_api.interrupt(kern2['id']) 171s self.assertEqual(r.status_code, 204) 171s 171s # Restart a kernel 171s > r = self.kern_api.restart(kern2['id']) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 171s return self._req('POST', url_path_join(id, 'restart')) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5/restart 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 171s import jupyter_client 171s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 171s from .asynchronous import AsyncKernelClient 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 171s from .client import AsyncKernelClient # noqa 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 171s import zmq.asyncio 171s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 171s import asyncio 171s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 171s from .base_events import * 171s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 171s import concurrent.futures 171s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 171s from concurrent.futures._base import (FIRST_COMPLETED, 171s ...<9 lines>... 171s as_completed) 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 171s import logging 171s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 171s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 171s File "/usr/lib/python3.14/traceback.py", line 12, in 171s import _colorize 171s File "/usr/lib/python3.14/_colorize.py", line 5, in 171s from dataclasses import dataclass, field, Field 171s File "/usr/lib/python3.14/dataclasses.py", line 222, in 171s _MODULE_IDENTIFIER_RE = re.compile(r'^(?:\s*(\w+)\s*\.)?\s*(\w+)') 171s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 171s return _compile(pattern, flags) 171s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 171s p = _compiler.compile(pattern, flags) 171s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 171s p = _parser.parse(p, flags) 171s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 171s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 171s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 171s itemsappend(_parse(source, state, verbose, nested + 1, 171s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s not nested and not items)) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 171s p = _parse_sub(source, state, sub_verbose, nested + 1) 171s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 171s itemsappend(_parse(source, state, verbose, nested + 1, 171s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s not nested and not items)) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_parser.py", line 544, in _parse 171s code = _escape(source, this, state) 171s File "/usr/lib/python3.14/re/_parser.py", line 372, in _escape 171s def _escape(source, escape, state): 171s 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-610c64ad-7a56-4033-a917-f2d710598c2f.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36391 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41597 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 610c64ad-7a56-4033-a917-f2d710598c2f, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.000000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc2arkj6k/runtime/kernel-ee737dd5-8c24-48a3-b5c9-fa5f471affa5.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58659 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54423 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee737dd5-8c24-48a3-b5c9-fa5f471affa5, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.500000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ee737dd5-8c24-48a3-b5c9-fa5f471affa5 171s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5/interrupt (::1) 1.790000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 171s yield maybe_future(km.restart_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 171s result = coro.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 171s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 171s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 171s yield self # This tells Task to wait for completion. 171s ^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 171s await ensure_async(kernel.restart_kernel(now=now)) 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 171s await self._async_shutdown_kernel(now=now, restart=True) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5/restart (::1) 8.550000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 610c64ad-7a56-4033-a917-f2d710598c2f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 610c64ad-7a56-4033-a917-f2d710598c2f 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 171s yield maybe_future(km.shutdown_kernel(kernel_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 171s 171s self = 171s 171s def test_no_kernels(self): 171s """Make sure there are no kernels running at the start""" 171s kernels = self.kern_api.list().json() 171s > self.assertEqual(kernels, []) 171s E AssertionError: Lists differ: [{'id': '610c64ad-7a56-4033-a917-f2d710598[281 chars]: 0}] != [] 171s E 171s E First list contains 2 additional elements. 171s E First extra element 0: 171s E {'id': '610c64ad-7a56-4033-a917-f2d710598c2f', 'name': 'python3', 'last_activity': '2026-01-22T18:37:00.392689Z', 'execution_state': 'starting', 'connections': 0} 171s E 171s E + [] 171s E - [{'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': '610c64ad-7a56-4033-a917-f2d710598c2f', 171s E - 'last_activity': '2026-01-22T18:37:00.392689Z', 171s E - 'name': 'python3'}, 171s E - {'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': 'ee737dd5-8c24-48a3-b5c9-fa5f471affa5', 171s E - 'last_activity': '2026-01-22T18:37:00.416070Z', 171s E - 'name': 'python3'}] 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 610c64ad-7a56-4033-a917-f2d710598c2f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 610c64ad-7a56-4033-a917-f2d710598c2f 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/610c64ad-7a56-4033-a917-f2d710598c2f (::1) 0.600000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee737dd5-8c24-48a3-b5c9-fa5f471affa5 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee737dd5-8c24-48a3-b5c9-fa5f471affa5 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ee737dd5-8c24-48a3-b5c9-fa5f471affa5 (::1) 0.610000ms 171s ---------------------------- Captured log teardown ----------------------------- 171s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 610c64ad-7a56-4033-a917-f2d710598c2f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a00e55fc-d74c-4746-b7af-a25aaaa4a5de 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 268fad21-6ad0-4674-a0c9-e0c0c059380c 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dea0674-c208-4229-bd65-d06a6d55f3c2 171s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 171s __________________________ SessionAPITest.test_create __________________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log setup ------------------------------ 171s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpv71n00zo/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpv71n00zo/etc/jupyter'] for config files 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv71n00zo/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv71n00zo/config 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv71n00zo/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv71n00zo/config 171s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpv71n00zo/notebooks 171s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 171s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 171s WARNING NotebookApp:handlers.py:612 Forbidden 171s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-6894e552-a263-469c-8757-961985c80a4e.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42459 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46119 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6894e552-a263-469c-8757-961985c80a4e, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.230000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5 (::1) 0.560000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6894e552-a263-469c-8757-961985c80a4e 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6894e552-a263-469c-8757-961985c80a4e 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5 (::1) 11.560000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 171s import json 171s File "/usr/lib/python3.14/json/__init__.py", line 107, in 171s from .encoder import JSONEncoder 171s File "/usr/lib/python3.14/json/encoder.py", line 20, in 171s HAS_UTF8 = re.compile(b'[\x80-\xff]') 171s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 171s return _compile(pattern, flags) 171s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 171s p = _compiler.compile(pattern, flags) 171s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 171s code = _code(p, flags) 171s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 171s _compile(code, p.data, flags) 171s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_compiler.py", line 88, in _compile 171s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 171s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_compiler.py", line 284, in _optimize_charset 171s charmap[i] = 1 171s ~~~~~~~^^^ 171s KeyboardInterrupt 171s __________________ SessionAPITest.test_create_console_session __________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dcc2acb5-d29c-43df-b95e-4edb8e609c0d 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-819302f5-63c7-4d2e-bc2c-c2bfa76d16ea.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45701 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34385 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 819302f5-63c7-4d2e-bc2c-c2bfa76d16ea, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.570000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6894e552-a263-469c-8757-961985c80a4e 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6894e552-a263-469c-8757-961985c80a4e 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a95f7e1e-af14-4115-ba3e-5da9a79ee5a5 (::1) 2.000000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 819302f5-63c7-4d2e-bc2c-c2bfa76d16ea 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 819302f5-63c7-4d2e-bc2c-c2bfa76d16ea 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dcc2acb5-d29c-43df-b95e-4edb8e609c0d (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dcc2acb5-d29c-43df-b95e-4edb8e609c0d', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 171s from __future__ import annotations 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 938, in _load_unlocked 171s File "", line 755, in exec_module 171s File "", line 851, in get_code 171s File "", line 950, in get_data 171s KeyboardInterrupt 171s ____________________ SessionAPITest.test_create_deprecated _____________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5be22ea3-d443-4d77-9d7b-2d41308fdc30 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-00f15ed6-2893-416a-a1cd-e09d340c8162.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41291 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60677 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00f15ed6-2893-416a-a1cd-e09d340c8162, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.200000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 819302f5-63c7-4d2e-bc2c-c2bfa76d16ea 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 819302f5-63c7-4d2e-bc2c-c2bfa76d16ea 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dcc2acb5-d29c-43df-b95e-4edb8e609c0d (::1) 2.670000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00f15ed6-2893-416a-a1cd-e09d340c8162 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00f15ed6-2893-416a-a1cd-e09d340c8162 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5be22ea3-d443-4d77-9d7b-2d41308fdc30 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5be22ea3-d443-4d77-9d7b-2d41308fdc30', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 171s from subprocess import PIPE, Popen 171s File "/usr/lib/python3.14/subprocess.py", line 0, in 171s 171s # subprocess - Subprocesses with accessible I/O streams 171s KeyboardInterrupt 171s ___________________ SessionAPITest.test_create_file_session ____________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a7bbf10-d102-434a-9665-ee00da6148f2 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-ad42cc1e-8db1-4838-8d61-3e8cac4f2995.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56489 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39385 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: ad42cc1e-8db1-4838-8d61-3e8cac4f2995, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.230000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00f15ed6-2893-416a-a1cd-e09d340c8162 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00f15ed6-2893-416a-a1cd-e09d340c8162 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5be22ea3-d443-4d77-9d7b-2d41308fdc30 (::1) 1.930000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad42cc1e-8db1-4838-8d61-3e8cac4f2995 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad42cc1e-8db1-4838-8d61-3e8cac4f2995 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a7bbf10-d102-434a-9665-ee00da6148f2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a7bbf10-d102-434a-9665-ee00da6148f2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 237, in 171s magic_check_bytes = re.compile(b'([*?[])') 171s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 171s return _compile(pattern, flags) 171s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 171s p = _compiler.compile(pattern, flags) 171s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 171s code = _code(p, flags) 171s File "/usr/lib/python3.14/re/_compiler.py", line 599, in _code 171s _compile(code, p.data, flags) 171s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_compiler.py", line 133, in _compile 171s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 171s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_compiler.py", line 88, in _compile 171s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 171s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/re/_compiler.py", line 353, in _optimize_charset 171s data = _mk_bitmap(charmap) 171s File "/usr/lib/python3.14/re/_compiler.py", line 402, in _mk_bitmap 171s return [_int(s[i - _CODEBITS: i], 2) 171s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 171s KeyboardInterrupt 171s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 171s 171s self = 171s 171s def test_create_with_kernel_id(self): 171s # create a new kernel 171s r = self.request('POST', 'api/kernels') 171s r.raise_for_status() 171s kernel = r.json() 171s 171s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 171s self.assertEqual(resp.status_code, 201) 171s newsession = resp.json() 171s self.assertIn('id', newsession) 171s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 171s self.assertEqual(newsession['kernel']['id'], kernel['id']) 171s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 171s 171s sessions = self.sess_api.list().json() 171s > self.assertEqual(sessions, [newsession]) 171s E AssertionError: Lists differ: [{'id': '1a7bbf10-d102-434a-9665-ee00da6148f2', 'p[553 chars]ne}}] != [{'id': 'd1e81a03-7693-490a-b853-8d03364b8b6e', 'p[279 chars]ne}}] 171s E 171s E First differing element 0: 171s E {'id': '1a7bbf10-d102-434a-9665-ee00da6148f2', 'p[218 chars]: 0}} 171s E {'id': 'd1e81a03-7693-490a-b853-8d03364b8b6e', 'p[278 chars]one}} 171s E 171s E First list contains 1 additional elements. 171s E First extra element 1: 171s E {'id': 'd1e81a03-7693-490a-b853-8d03364b8b6e', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6af4d27f-d6df-4784-98b4-a59e25f84e5c', 'name': 'python3', 'last_activity': '2026-01-22T18:37:11.127165Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 171s E 171s E Diff is 830 characters long. Set self.maxDiff to None to see it. 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-6af4d27f-d6df-4784-98b4-a59e25f84e5c.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55313 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59831 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6af4d27f-d6df-4784-98b4-a59e25f84e5c, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.410000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad42cc1e-8db1-4838-8d61-3e8cac4f2995 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad42cc1e-8db1-4838-8d61-3e8cac4f2995 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1a7bbf10-d102-434a-9665-ee00da6148f2 (::1) 0.760000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6af4d27f-d6df-4784-98b4-a59e25f84e5c 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6af4d27f-d6df-4784-98b4-a59e25f84e5c 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d1e81a03-7693-490a-b853-8d03364b8b6e (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d1e81a03-7693-490a-b853-8d03364b8b6e', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 171s 171s self = 171s 171s def test_modify_kernel_id(self): 171s before = self.sess_api.create('foo/nb1.ipynb').json() 171s sid = before['id'] 171s 171s # create a new kernel 171s r = self.request('POST', 'api/kernels') 171s r.raise_for_status() 171s kernel = r.json() 171s 171s # Attach our session to the existing kernel 171s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 171s return self._req('PATCH', id, body) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 171s import jupyter_client 171s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 171s from .asynchronous import AsyncKernelClient 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 171s from .client import AsyncKernelClient # noqa 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 171s import zmq.asyncio 171s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 171s from zmq import backend 171s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 171s _ns = select_backend(first) 171s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 171s mod = import_module(name) 171s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 171s return _bootstrap._gcd_import(name[level:], package, level) 171s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 171s from . import _zmq 171s File "", line 648, in parent 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-d1ae628d-19be-4e3c-bc97-32ded3fc71d4.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59271 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51105 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: d1ae628d-19be-4e3c-bc97-32ded3fc71d4, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.630000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-979971d9-9c6c-46bd-b36e-e4cce3c2bc86.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42677 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56567 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.410000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1ae628d-19be-4e3c-bc97-32ded3fc71d4 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1ae628d-19be-4e3c-bc97-32ded3fc71d4 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 171s km.shutdown_kernel(before['kernel']['id']) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 15.950000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 13.680000ms referer=None 171s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 171s 171s self = 171s 171s def test_modify_kernel_name(self): 171s before = self.sess_api.create('foo/nb1.ipynb').json() 171s sid = before['id'] 171s 171s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 171s self.assertEqual(after['id'], sid) 171s self.assertEqual(after['path'], before['path']) 171s self.assertEqual(after['type'], before['type']) 171s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 171s 171s # check kernel list, to be sure previous kernel was cleaned up 171s r = self.request('GET', 'api/kernels') 171s r.raise_for_status() 171s kernel_list = r.json() 171s after['kernel'].pop('last_activity') 171s [ k.pop('last_activity') for k in kernel_list ] 171s > self.assertEqual(kernel_list, [after['kernel']]) 171s E AssertionError: Lists differ: [{'id': 'd1ae628d-19be-4e3c-bc97-32ded3fc71d4', 'n[177 chars]: 0}] != [{'id': 'b7daacfb-1889-4965-8481-6a9de67dcc28', 'n[61 chars]: 0}] 171s E 171s E First differing element 0: 171s E {'id': 'd1ae628d-19be-4e3c-bc97-32ded3fc71d4', 'n[60 chars]': 0} 171s E {'id': 'b7daacfb-1889-4965-8481-6a9de67dcc28', 'n[60 chars]': 0} 171s E 171s E First list contains 1 additional elements. 171s E First extra element 1: 171s E {'id': 'b7daacfb-1889-4965-8481-6a9de67dcc28', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 171s E 171s E [{'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': 'd1ae628d-19be-4e3c-bc97-32ded3fc71d4', 171s E - 'name': 'python3'}, 171s E - {'connections': 0, 171s E 'execution_state': 'starting', 171s E 'id': 'b7daacfb-1889-4965-8481-6a9de67dcc28', 171s E 'name': 'python3'}] 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.010000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-b7daacfb-1889-4965-8481-6a9de67dcc28.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48171 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48825 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7daacfb-1889-4965-8481-6a9de67dcc28, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 979971d9-9c6c-46bd-b36e-e4cce3c2bc86 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 14.580000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.870000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7daacfb-1889-4965-8481-6a9de67dcc28 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7daacfb-1889-4965-8481-6a9de67dcc28 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08b613ed-695c-406b-a122-5bcb77701ee4', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s __________________ SessionAPITest.test_modify_path_deprecated __________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 171s gc.collect() 171s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-643dd844-0f9f-4f37-9f38-bd08b9a04e27.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48115 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43793 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 643dd844-0f9f-4f37-9f38-bd08b9a04e27, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.800000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e (::1) 0.860000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 643dd844-0f9f-4f37-9f38-bd08b9a04e27 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 643dd844-0f9f-4f37-9f38-bd08b9a04e27 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e (::1) 7.880000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 938, in _load_unlocked 171s File "", line 755, in exec_module 171s File "", line 888, in get_code 171s File "", line 511, in _compile_bytecode 171s KeyboardInterrupt 171s _______________________ SessionAPITest.test_modify_type ________________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/03bdfaad-d351-49a4-a612-1d5e8cd90a17 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv71n00zo/runtime/kernel-87724a65-e3cb-4bf7-b35d-d560e94bf32b.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33655 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 87724a65-e3cb-4bf7-b35d-d560e94bf32b, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpv71n00zo/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.000000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/03bdfaad-d351-49a4-a612-1d5e8cd90a17 (::1) 0.860000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 643dd844-0f9f-4f37-9f38-bd08b9a04e27 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 643dd844-0f9f-4f37-9f38-bd08b9a04e27 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5b1bae9c-d330-4c41-894b-02b290ddee4e (::1) 0.790000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 87724a65-e3cb-4bf7-b35d-d560e94bf32b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87724a65-e3cb-4bf7-b35d-d560e94bf32b 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/03bdfaad-d351-49a4-a612-1d5e8cd90a17 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/03bdfaad-d351-49a4-a612-1d5e8cd90a17', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 171s yielded = self.gen.send(value) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 171s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 171s stopper = ensure_async(km.shutdown_kernel(now, restart)) 171s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 171s return _runner_map[name].run(inner) 171s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 171s return fut.result(None) 171s ~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 171s return self.__get_result() 171s ~~~~~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 171s raise self._exception 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/03bdfaad-d351-49a4-a612-1d5e8cd90a17 (::1) 7.000000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 171s import json 171s File "/usr/lib/python3.14/json/__init__.py", line 106, in 171s from .decoder import JSONDecoder, JSONDecodeError 171s File "/usr/lib/python3.14/json/decoder.py", line 20, in 171s class JSONDecodeError(ValueError): 171s ...<22 lines>... 171s return self.__class__, (self.msg, self.doc, self.pos) 171s KeyboardInterrupt 171s ---------------------------- Captured log teardown ----------------------------- 171s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1ae628d-19be-4e3c-bc97-32ded3fc71d4 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87724a65-e3cb-4bf7-b35d-d560e94bf32b 171s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 171s _______________________ AsyncSessionAPITest.test_create ________________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fa893ede-9305-4986-9016-72ad3a40ee38 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log setup ------------------------------ 171s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphx5ndilu/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphx5ndilu/etc/jupyter'] for config files 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphx5ndilu/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphx5ndilu/config 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphx5ndilu/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 171s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphx5ndilu/config 171s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphx5ndilu/notebooks 171s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 171s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 171s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 171s WARNING NotebookApp:handlers.py:612 Forbidden 171s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-548be3d4-e87b-413a-98bb-6e3fbad87a62.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54485 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40083 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 548be3d4-e87b-413a-98bb-6e3fbad87a62, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.220000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/fa893ede-9305-4986-9016-72ad3a40ee38 (::1) 0.610000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.670000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 548be3d4-e87b-413a-98bb-6e3fbad87a62 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 548be3d4-e87b-413a-98bb-6e3fbad87a62 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fa893ede-9305-4986-9016-72ad3a40ee38 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fa893ede-9305-4986-9016-72ad3a40ee38', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 171s import json 171s File "/usr/lib/python3.14/json/__init__.py", line 106, in 171s from .decoder import JSONDecoder, JSONDecodeError 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 924, in _load_unlocked 171s File "", line 816, in module_from_spec 171s File "", line 750, in create_module 171s KeyboardInterrupt 171s _______________ AsyncSessionAPITest.test_create_console_session ________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e33efce6-a34d-48ed-aee7-a795d0597b5a 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-f3a7abd4-e028-4a47-8727-a2b31b65b4fb.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58183 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43961 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: f3a7abd4-e028-4a47-8727-a2b31b65b4fb, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.340000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 548be3d4-e87b-413a-98bb-6e3fbad87a62 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 548be3d4-e87b-413a-98bb-6e3fbad87a62 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fa893ede-9305-4986-9016-72ad3a40ee38 (::1) 1.920000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3a7abd4-e028-4a47-8727-a2b31b65b4fb 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3a7abd4-e028-4a47-8727-a2b31b65b4fb 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e33efce6-a34d-48ed-aee7-a795d0597b5a (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e33efce6-a34d-48ed-aee7-a795d0597b5a', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e33efce6-a34d-48ed-aee7-a795d0597b5a (::1) 6.650000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "/usr/lib/python3.14/re/_parser.py", line 15, in 171s from ._constants import * 171s File "/usr/lib/python3.14/re/_constants.py", line 78, in 171s OPCODES = _makecodes( 171s # failure=0 success=1 (just because it looks better that way :-) 171s ...<45 lines>... 171s 'MIN_REPEAT', 'MAX_REPEAT', 171s ) 171s File "/usr/lib/python3.14/re/_constants.py", line 73, in _makecodes 171s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 171s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 171s KeyboardInterrupt 171s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dea6b90a-ea91-44b8-a88d-eeafb6c12cc7 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-71bd29e4-5978-4d6f-98b0-d2cc64c14039.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55877 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59891 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 71bd29e4-5978-4d6f-98b0-d2cc64c14039, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.660000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3a7abd4-e028-4a47-8727-a2b31b65b4fb 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3a7abd4-e028-4a47-8727-a2b31b65b4fb 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e33efce6-a34d-48ed-aee7-a795d0597b5a (::1) 1.850000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71bd29e4-5978-4d6f-98b0-d2cc64c14039 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71bd29e4-5978-4d6f-98b0-d2cc64c14039 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dea6b90a-ea91-44b8-a88d-eeafb6c12cc7 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dea6b90a-ea91-44b8-a88d-eeafb6c12cc7', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dea6b90a-ea91-44b8-a88d-eeafb6c12cc7 (::1) 6.690000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "/usr/lib/python3.14/re/_parser.py", line 15, in 171s from ._constants import * 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 924, in _load_unlocked 171s File "", line 822, in module_from_spec 171s File "", line 800, in _init_module_attrs 171s KeyboardInterrupt 171s _________________ AsyncSessionAPITest.test_create_file_session _________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-6b80387f-72ea-4303-9b2c-0ef995800505.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43755 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40373 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b80387f-72ea-4303-9b2c-0ef995800505, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.800000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71bd29e4-5978-4d6f-98b0-d2cc64c14039 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71bd29e4-5978-4d6f-98b0-d2cc64c14039 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dea6b90a-ea91-44b8-a88d-eeafb6c12cc7 (::1) 0.720000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b80387f-72ea-4303-9b2c-0ef995800505 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b80387f-72ea-4303-9b2c-0ef995800505 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b (::1) 6.820000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "/usr/lib/python3.14/re/_parser.py", line 15, in 171s from ._constants import * 171s File "", line 1371, in _find_and_load 171s File "", line 1342, in _find_and_load_unlocked 171s File "", line 938, in _load_unlocked 171s File "", line 755, in exec_module 171s File "", line 888, in get_code 171s File "", line 511, in _compile_bytecode 171s KeyboardInterrupt 171s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 171s 171s self = 171s 171s def test_create_with_kernel_id(self): 171s # create a new kernel 171s r = self.request('POST', 'api/kernels') 171s r.raise_for_status() 171s kernel = r.json() 171s 171s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 171s self.assertEqual(resp.status_code, 201) 171s newsession = resp.json() 171s self.assertIn('id', newsession) 171s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 171s self.assertEqual(newsession['kernel']['id'], kernel['id']) 171s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 171s 171s sessions = self.sess_api.list().json() 171s > self.assertEqual(sessions, [newsession]) 171s E AssertionError: Lists differ: [{'id': '957ad483-f26e-4c1e-a57b-619fd0b9310b', 'p[553 chars]ne}}] != [{'id': 'ed879632-d60a-439b-b7d4-8050f8c960b0', 'p[279 chars]ne}}] 171s E 171s E First differing element 0: 171s E {'id': '957ad483-f26e-4c1e-a57b-619fd0b9310b', 'p[218 chars]: 0}} 171s E {'id': 'ed879632-d60a-439b-b7d4-8050f8c960b0', 'p[278 chars]one}} 171s E 171s E First list contains 1 additional elements. 171s E First extra element 1: 171s E {'id': 'ed879632-d60a-439b-b7d4-8050f8c960b0', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f200d9c3-419a-4dba-839d-16c4e0b9973f', 'name': 'python3', 'last_activity': '2026-01-22T18:37:12.038179Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 171s E 171s E Diff is 830 characters long. Set self.maxDiff to None to see it. 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-f200d9c3-419a-4dba-839d-16c4e0b9973f.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51021 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47517 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: f200d9c3-419a-4dba-839d-16c4e0b9973f, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.750000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b80387f-72ea-4303-9b2c-0ef995800505 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b80387f-72ea-4303-9b2c-0ef995800505 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/957ad483-f26e-4c1e-a57b-619fd0b9310b (::1) 1.210000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f200d9c3-419a-4dba-839d-16c4e0b9973f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f200d9c3-419a-4dba-839d-16c4e0b9973f 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ed879632-d60a-439b-b7d4-8050f8c960b0 (::1) 7.360000ms referer=None 171s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 171s 171s self = 171s 171s def test_modify_kernel_id(self): 171s before = self.sess_api.create('foo/nb1.ipynb').json() 171s sid = before['id'] 171s 171s # create a new kernel 171s r = self.request('POST', 'api/kernels') 171s r.raise_for_status() 171s kernel = r.json() 171s 171s # Attach our session to the existing kernel 171s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 171s return self._req('PATCH', id, body) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 171s import jupyter_client 171s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 171s from .asynchronous import AsyncKernelClient 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 171s from .client import AsyncKernelClient # noqa 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 171s import zmq.asyncio 171s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 171s from zmq import backend 171s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 171s _ns = select_backend(first) 171s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 171s mod = import_module(name) 171s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 171s return _bootstrap._gcd_import(name[level:], package, level) 171s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 171s from . import _zmq 171s File "", line 648, in parent 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-fc780e1f-eac0-4a9f-9316-0127350fa8d3.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52203 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45007 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: fc780e1f-eac0-4a9f-9316-0127350fa8d3, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.340000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-7b92d787-2c13-4b87-8224-ad42cfab1b6b.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43255 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48757 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b92d787-2c13-4b87-8224-ad42cfab1b6b, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.700000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fc780e1f-eac0-4a9f-9316-0127350fa8d3 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc780e1f-eac0-4a9f-9316-0127350fa8d3 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 171s yield maybe_future( 171s km.shutdown_kernel(before['kernel']['id']) 171s ) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 16.700000ms referer=None 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 8.560000ms referer=None 171s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 171s 171s self = 171s 171s def test_modify_kernel_name(self): 171s before = self.sess_api.create('foo/nb1.ipynb').json() 171s sid = before['id'] 171s 171s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 171s self.assertEqual(after['id'], sid) 171s self.assertEqual(after['path'], before['path']) 171s self.assertEqual(after['type'], before['type']) 171s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 171s 171s # check kernel list, to be sure previous kernel was cleaned up 171s r = self.request('GET', 'api/kernels') 171s r.raise_for_status() 171s kernel_list = r.json() 171s after['kernel'].pop('last_activity') 171s [ k.pop('last_activity') for k in kernel_list ] 171s > self.assertEqual(kernel_list, [after['kernel']]) 171s E AssertionError: Lists differ: [{'id': 'fc780e1f-eac0-4a9f-9316-0127350fa8d3', 'n[177 chars]: 0}] != [{'id': '0805e222-d8db-46d9-a145-04339d244325', 'n[61 chars]: 0}] 171s E 171s E First differing element 0: 171s E {'id': 'fc780e1f-eac0-4a9f-9316-0127350fa8d3', 'n[60 chars]': 0} 171s E {'id': '0805e222-d8db-46d9-a145-04339d244325', 'n[60 chars]': 0} 171s E 171s E First list contains 1 additional elements. 171s E First extra element 1: 171s E {'id': '0805e222-d8db-46d9-a145-04339d244325', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 171s E 171s E [{'connections': 0, 171s E - 'execution_state': 'starting', 171s E - 'id': 'fc780e1f-eac0-4a9f-9316-0127350fa8d3', 171s E - 'name': 'python3'}, 171s E - {'connections': 0, 171s E 'execution_state': 'starting', 171s E 'id': '0805e222-d8db-46d9-a145-04339d244325', 171s E 'name': 'python3'}] 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.820000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-0805e222-d8db-46d9-a145-04339d244325.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57447 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46301 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0805e222-d8db-46d9-a145-04339d244325, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 14.620000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0805e222-d8db-46d9-a145-04339d244325 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0805e222-d8db-46d9-a145-04339d244325 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12d8b521-7905-4f1b-b91f-7cf2cff829a2 (::1) 6.940000ms referer=None 171s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cff506f2-44ff-4e35-8eec-9450f14b2e42 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-5fb04a78-e980-44f9-aa94-53d3d825edf0.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48333 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49383 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5fb04a78-e980-44f9-aa94-53d3d825edf0, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.350000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/cff506f2-44ff-4e35-8eec-9450f14b2e42 (::1) 2.020000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fb04a78-e980-44f9-aa94-53d3d825edf0 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fb04a78-e980-44f9-aa94-53d3d825edf0 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cff506f2-44ff-4e35-8eec-9450f14b2e42 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cff506f2-44ff-4e35-8eec-9450f14b2e42', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 171s from glob import _StringGlobber, _no_recurse_symlinks 171s File "/usr/lib/python3.14/glob.py", line 5, in 171s import re 171s File "/usr/lib/python3.14/re/__init__.py", line 126, in 171s from . import _compiler, _parser 171s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 171s from . import _parser 171s File "", line 1368, in _find_and_load 171s File "", line 421, in __enter__ 171s File "", line 311, in acquire 171s File "", line 175, in __exit__ 171s KeyboardInterrupt 171s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 171s 171s @self.addCleanup 171s def cleanup_sessions(): 171s for session in self.sess_api.list().json(): 171s > self.sess_api.delete(session['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b1049de5-a8a6-441e-b003-bebde05b5a95 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphx5ndilu/runtime/kernel-427d4866-a2af-4afe-9552-604c62c69a9c.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39919 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49607 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: 427d4866-a2af-4afe-9552-604c62c69a9c, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmphx5ndilu/notebooks/foo'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.620000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b1049de5-a8a6-441e-b003-bebde05b5a95 (::1) 0.800000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.800000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fb04a78-e980-44f9-aa94-53d3d825edf0 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fb04a78-e980-44f9-aa94-53d3d825edf0 171s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cff506f2-44ff-4e35-8eec-9450f14b2e42 (::1) 1.930000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 427d4866-a2af-4afe-9552-604c62c69a9c 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 427d4866-a2af-4afe-9552-604c62c69a9c 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b1049de5-a8a6-441e-b003-bebde05b5a95 (::1) 171s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b1049de5-a8a6-441e-b003-bebde05b5a95', version='HTTP/1.1', remote_ip='::1') 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 171s result = await result 171s ^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 171s future.result() 171s ~~~~~~~~~~~~~^^ 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 171s yield maybe_future(sm.delete_session(session_id)) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 171s yielded = self.gen.throw(exc) 171s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 171s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 171s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 171s value = future.result() 171s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 171s raise self._exception.with_traceback(self._exception_tb) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 171s result = coro.send(None) 171s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 171s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 171s raise km.ready.exception() # type: ignore[misc] 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 171s await kernel_awaitable 171s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 171s result = await obj 171s ^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 171s raise e 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 171s await self._async_finish_shutdown(restart=restart) 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 171s await asyncio.wait_for( 171s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 171s ) 171s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 171s async with timeouts.timeout(timeout): 171s ~~~~~~~~~~~~~~~~^^^^^^^^^ 171s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 171s raise RuntimeError("Timeout should be used inside a task") 171s RuntimeError: Timeout should be used inside a task 171s WARNING NotebookApp:handlers.py:612 Unhandled error 171s ERROR NotebookApp:log.py:55 { 171s "Host": "localhost:12341", 171s "Accept": "*/*", 171s "User-Agent": "python-requests/2.32.5" 171s } 171s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b1049de5-a8a6-441e-b003-bebde05b5a95 (::1) 6.970000ms referer=None 171s --------------------------- Captured stderr teardown --------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.14/pathlib/__init__.py", line 48, in 171s class _PathParents(Sequence): 171s ...<25 lines>... 171s return "<{}.parents>".format(type(self._path).__name__) 171s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 171s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 171s KeyboardInterrupt 171s ---------------------------- Captured log teardown ----------------------------- 171s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3a7abd4-e028-4a47-8727-a2b31b65b4fb 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 548be3d4-e87b-413a-98bb-6e3fbad87a62 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b80387f-72ea-4303-9b2c-0ef995800505 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71bd29e4-5978-4d6f-98b0-d2cc64c14039 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 427d4866-a2af-4afe-9552-604c62c69a9c 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0805e222-d8db-46d9-a145-04339d244325 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b92d787-2c13-4b87-8224-ad42cfab1b6b 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fc780e1f-eac0-4a9f-9316-0127350fa8d3 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f200d9c3-419a-4dba-839d-16c4e0b9973f 171s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fb04a78-e980-44f9-aa94-53d3d825edf0 171s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 171s =============================== warnings summary =============================== 171s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 171s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 171s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 171s return LooseVersion(v) >= LooseVersion(check) 171s 171s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 171s auth/tests/test_login.py: 2 warnings 171s bundler/tests/test_bundler_api.py: 2 warnings 171s services/api/tests/test_api.py: 4 warnings 171s services/config/tests/test_config_api.py: 7 warnings 171s services/contents/tests/test_contents_api.py: 318 warnings 171s services/kernels/tests/test_kernels_api.py: 111 warnings 171s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 171s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 171s services/sessions/tests/test_sessionmanager.py: 9 warnings 171s services/sessions/tests/test_sessions_api.py: 128 warnings 171s terminal/tests/test_terminals_api.py: 50 warnings 171s tests/test_files.py: 2 warnings 171s tests/test_gateway.py: 21 warnings 171s tests/test_notebookapp.py: 8 warnings 171s tests/test_paths.py: 2 warnings 171s tree/tests/test_tree_handler.py: 2 warnings 171s /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). 171s dt = unaware(*args, **kwargs) 171s 171s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 171s /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 171s pytestmark = pytest.mark.integration_tests 171s 171s auth/tests/test_login.py: 3 warnings 171s bundler/tests/test_bundler_api.py: 3 warnings 171s services/api/tests/test_api.py: 3 warnings 171s services/config/tests/test_config_api.py: 3 warnings 171s services/contents/tests/test_contents_api.py: 6 warnings 171s services/kernels/tests/test_kernels_api.py: 12 warnings 171s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 171s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 171s services/sessions/tests/test_sessions_api.py: 6 warnings 171s terminal/tests/test_terminals_api.py: 6 warnings 171s tests/test_files.py: 3 warnings 171s tests/test_gateway.py: 3 warnings 171s tests/test_notebookapp.py: 11 warnings 171s tests/test_paths.py: 3 warnings 171s tree/tests/test_tree_handler.py: 3 warnings 171s /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 171s policy = events.get_event_loop_policy() 171s 171s auth/tests/test_login.py: 9 warnings 171s bundler/tests/test_bundler_api.py: 9 warnings 171s services/api/tests/test_api.py: 9 warnings 171s services/config/tests/test_config_api.py: 9 warnings 171s services/contents/tests/test_contents_api.py: 18 warnings 171s services/kernels/tests/test_kernels_api.py: 47 warnings 171s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 171s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 171s services/sessions/tests/test_sessionmanager.py: 18 warnings 171s services/sessions/tests/test_sessions_api.py: 19 warnings 171s terminal/tests/test_terminals_api.py: 18 warnings 171s tests/test_files.py: 9 warnings 171s tests/test_gateway.py: 9 warnings 171s tests/test_notebookapp.py: 28 warnings 171s tests/test_paths.py: 9 warnings 171s tree/tests/test_tree_handler.py: 9 warnings 171s /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 171s loop = events.get_event_loop_policy().get_event_loop() 171s 171s bundler/tests/test_bundler_api.py: 6 warnings 171s services/api/tests/test_api.py: 6 warnings 171s services/contents/tests/test_contents_api.py: 806 warnings 171s services/contents/tests/test_largefilemanager.py: 42 warnings 171s services/contents/tests/test_manager.py: 526 warnings 171s tests/test_files.py: 8 warnings 171s tree/tests/test_tree_handler.py: 6 warnings 171s /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). 171s dt = unaware(*args, **kwargs) 171s 171s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 171s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 171s loop.make_current() 171s 171s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 171s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 171s /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/tmp00sy4xx3/data/kernels/sample 2 171s d = self.find_kernel_specs() 171s 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 171s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 171s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=7098) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 171s pid, fd = os.forkpty() 171s 171s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 171s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 171s for name, arg in zip(self.fields, fields): 171s Enable tracemalloc to get traceback where the object was allocated. 171s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 171s 171s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 171s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 171s /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). 171s dt = datetime.utcnow().isoformat() + 'Z' 171s 171s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 171s =========================== short test summary info ============================ 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 171s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 171s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 171s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 171s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 171s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 171s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 171s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 171s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 171s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 171s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 171s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 171s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 171s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 171s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 171s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 171s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 171s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 171s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 171s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 171s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 171s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 171s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2404 warnings, 8 errors in 31.39s = 171s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 171s *** 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 175s ============================= test session starts ============================== 175s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 175s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 175s plugins: typeguard-4.4.4 175s collected 330 items / 303 deselected / 27 selected 175s run-last-failure: rerun previous 27 failures 175s 177s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 178s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 178s 178s ==================================== ERRORS ==================================== 178s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 178s from pathlib._os import ( 178s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 178s import fcntl 178s File "", line 1368, in _find_and_load 178s File "", line 420, in __enter__ 178s File "", line 459, in _get_module_lock 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-5c9df615-7295-44b8-94c6-4d46fedb836b.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43031 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38609 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c9df615-7295-44b8-94c6-4d46fedb836b, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.690000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52169 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58555 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.270000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9/interrupt (::1) 0.710000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9/restart (::1) 8.240000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c9df615-7295-44b8-94c6-4d46fedb836b 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c9df615-7295-44b8-94c6-4d46fedb836b 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 178s yielded = ctx_run(next, result) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 178s import jupyter_client 178s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 178s from .asynchronous import AsyncKernelClient 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 178s from .client import AsyncKernelClient # noqa 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 178s import zmq.asyncio 178s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 178s import asyncio 178s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 178s from .base_events import * 178s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 178s import concurrent.futures 178s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 178s from concurrent.futures._base import (FIRST_COMPLETED, 178s ...<9 lines>... 178s as_completed) 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 178s import logging 178s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 178s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 178s File "/usr/lib/python3.14/traceback.py", line 12, in 178s import _colorize 178s File "/usr/lib/python3.14/_colorize.py", line 210, in 178s @dataclass(frozen=True) 178s ~~~~~~~~~^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 178s return _process_class(cls, init, repr, eq, order, unsafe_hash, 178s frozen, match_args, kw_only, slots, 178s weakref_slot) 178s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 178s func_builder.add_fns_to_class(cls) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 178s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 178s exec(txt, self.globals, ns) 178s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 178s File "", line 0, in 178s KeyboardInterrupt 178s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 178s from . import _parser 178s File "", line 648, in parent 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-eb247891-ed82-4c07-99d6-98a24dc1d3c6.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32897 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46281 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: eb247891-ed82-4c07-99d6-98a24dc1d3c6, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.930000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-5672811e-fdb5-409b-b9c8-bffc2767e1aa.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59433 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49699 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5672811e-fdb5-409b-b9c8-bffc2767e1aa, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5672811e-fdb5-409b-b9c8-bffc2767e1aa 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5672811e-fdb5-409b-b9c8-bffc2767e1aa/interrupt (::1) 0.630000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 178s result = coro.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 178s yield self # This tells Task to wait for completion. 178s ^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5672811e-fdb5-409b-b9c8-bffc2767e1aa/restart (::1) 3.350000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 178s import jupyter_client 178s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 178s from .asynchronous import AsyncKernelClient 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 178s from .client import AsyncKernelClient # noqa 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 178s import zmq.asyncio 178s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 178s import asyncio 178s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 178s from .base_events import * 178s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 178s import concurrent.futures 178s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 178s from concurrent.futures._base import (FIRST_COMPLETED, 178s ...<9 lines>... 178s as_completed) 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 178s import logging 178s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 178s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 178s File "/usr/lib/python3.14/traceback.py", line 10, in 178s import tokenize 178s File "/usr/lib/python3.14/tokenize.py", line 124, in 178s Special = group(*map(re.escape, sorted(EXACT_TOKEN_TYPES, reverse=True))) 178s File "/usr/lib/python3.14/tokenize.py", line 60, in group 178s def group(*choices): return '(' + '|'.join(choices) + ')' 178s ~~~~~~~~^^^^^^^^^ 178s KeyboardInterrupt 178s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-b609c5e5-5b25-45df-bcf1-4ae972b17548.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39445 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35457 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: b609c5e5-5b25-45df-bcf1-4ae972b17548, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.120000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.710000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db758f75-fc8a-4736-8871-f3398dfbb33d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db758f75-fc8a-4736-8871-f3398dfbb33d 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b6b66b0b-3a47-41f9-87b6-2af38a19c1db (::1) 1.990000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b609c5e5-5b25-45df-bcf1-4ae972b17548 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b609c5e5-5b25-45df-bcf1-4ae972b17548 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 8.380000ms referer=None 178s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-d7fa687a-35fb-4c80-872f-c455b23d3986.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58817 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39847 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7fa687a-35fb-4c80-872f-c455b23d3986, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.160000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.850000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3201717-b893-4bc7-9a51-aaadf98290eb (::1) 1.810000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7fa687a-35fb-4c80-872f-c455b23d3986 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7fa687a-35fb-4c80-872f-c455b23d3986 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s =================================== FAILURES =================================== 178s ______________________ KernelAPITest.test_default_kernel _______________________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f02b8320-c024-45d2-bd02-d2ece9fff19e 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmponbkoqbl/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmponbkoqbl/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmponbkoqbl/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmponbkoqbl/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmponbkoqbl/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmponbkoqbl/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmponbkoqbl/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.660000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-f02b8320-c024-45d2-bd02-d2ece9fff19e.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39503 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47025 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: f02b8320-c024-45d2-bd02-d2ece9fff19e, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 59.280000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f02b8320-c024-45d2-bd02-d2ece9fff19e 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f02b8320-c024-45d2-bd02-d2ece9fff19e 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f02b8320-c024-45d2-bd02-d2ece9fff19e (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f02b8320-c024-45d2-bd02-d2ece9fff19e', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 178s yielded = ctx_run(next, result) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f02b8320-c024-45d2-bd02-d2ece9fff19e (::1) 8.210000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 107, in 178s from .encoder import JSONEncoder 178s File "/usr/lib/python3.14/json/encoder.py", line 19, in 178s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 178s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 178s return _compile(pattern, flags) 178s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 178s p = _compiler.compile(pattern, flags) 178s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 178s p = _parser.parse(p, flags) 178s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 178s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 178s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 178s itemsappend(_parse(source, state, verbose, nested + 1, 178s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s not nested and not items)) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 178s p = _parse_sub(source, state, sub_verbose, nested + 1) 178s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 178s itemsappend(_parse(source, state, verbose, nested + 1, 178s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s not nested and not items)) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s KeyboardInterrupt 178s ______________________ KernelAPITest.test_kernel_handler _______________________ 178s 178s self = 178s 178s def test_kernel_handler(self): 178s # GET kernel with given id 178s kid = self.kern_api.start().json()['id'] 178s r = self.kern_api.get(kid) 178s kern1 = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kern1, dict) 178s self.assertIn('id', kern1) 178s self.assertEqual(kern1['id'], kid) 178s 178s # Request a bad kernel id and check that a JSON 178s # message is returned! 178s bad_id = '111-111-111-111-111' 178s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 178s self.kern_api.get(bad_id) 178s 178s # DELETE kernel with id 178s > r = self.kern_api.shutdown(kid) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-7bc6040d-fc5e-450e-98bf-584e860f526c.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37101 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56907 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7bc6040d-fc5e-450e-98bf-584e860f526c, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.350000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c (::1) 1.700000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s 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 178s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 178s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.580000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bc6040d-fc5e-450e-98bf-584e860f526c 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bc6040d-fc5e-450e-98bf-584e860f526c 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 178s yielded = ctx_run(next, result) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c (::1) 10.520000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f02b8320-c024-45d2-bd02-d2ece9fff19e 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f02b8320-c024-45d2-bd02-d2ece9fff19e 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f02b8320-c024-45d2-bd02-d2ece9fff19e (::1) 1.870000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bc6040d-fc5e-450e-98bf-584e860f526c 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bc6040d-fc5e-450e-98bf-584e860f526c 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7bc6040d-fc5e-450e-98bf-584e860f526c (::1) 0.690000ms 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 178s class PureWindowsPath(PurePath): 178s ...<7 lines>... 178s __slots__ = () 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 178s import ntpath 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 851, in get_code 178s File "", line 950, in get_data 178s KeyboardInterrupt 178s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 178s 178s self = 178s 178s def test_main_kernel_handler(self): 178s # POST request 178s r = self.kern_api.start() 178s kern1 = r.json() 178s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 178s self.assertEqual(r.status_code, 201) 178s self.assertIsInstance(kern1, dict) 178s 178s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 178s expected_csp = '; '.join([ 178s "frame-ancestors 'self'", 178s 'report-uri ' + report_uri, 178s "default-src 'none'" 178s ]) 178s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 178s 178s # GET request 178s r = self.kern_api.list() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(r.json(), list) 178s self.assertEqual(r.json()[0]['id'], kern1['id']) 178s self.assertEqual(r.json()[0]['name'], kern1['name']) 178s 178s # create another kernel and check that they both are added to the 178s # list of kernels from a GET request 178s kern2 = self.kern_api.start().json() 178s assert isinstance(kern2, dict) 178s r = self.kern_api.list() 178s kernels = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kernels, list) 178s self.assertEqual(len(kernels), 2) 178s 178s # Interrupt a kernel 178s r = self.kern_api.interrupt(kern2['id']) 178s self.assertEqual(r.status_code, 204) 178s 178s # Restart a kernel 178s > r = self.kern_api.restart(kern2['id']) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 178s return self._req('POST', url_path_join(id, 'restart')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9/restart 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 178s from pathlib._os import ( 178s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 178s import fcntl 178s File "", line 1368, in _find_and_load 178s File "", line 420, in __enter__ 178s File "", line 459, in _get_module_lock 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-5c9df615-7295-44b8-94c6-4d46fedb836b.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43031 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38609 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c9df615-7295-44b8-94c6-4d46fedb836b, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.690000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmponbkoqbl/runtime/kernel-d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52169 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58555 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.270000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9/interrupt (::1) 0.710000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9/restart (::1) 8.240000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c9df615-7295-44b8-94c6-4d46fedb836b 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c9df615-7295-44b8-94c6-4d46fedb836b 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 178s yielded = ctx_run(next, result) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ________________________ KernelAPITest.test_no_kernels _________________________ 178s 178s self = 178s 178s def test_no_kernels(self): 178s """Make sure there are no kernels running at the start""" 178s kernels = self.kern_api.list().json() 178s > self.assertEqual(kernels, []) 178s E AssertionError: Lists differ: [{'id': '5c9df615-7295-44b8-94c6-4d46fedb8[281 chars]: 0}] != [] 178s E 178s E First list contains 2 additional elements. 178s E First extra element 0: 178s E {'id': '5c9df615-7295-44b8-94c6-4d46fedb836b', 'name': 'python3', 'last_activity': '2026-01-22T18:37:26.905336Z', 'execution_state': 'starting', 'connections': 0} 178s E 178s E + [] 178s E - [{'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': '5c9df615-7295-44b8-94c6-4d46fedb836b', 178s E - 'last_activity': '2026-01-22T18:37:26.905336Z', 178s E - 'name': 'python3'}, 178s E - {'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': 'd5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9', 178s E - 'last_activity': '2026-01-22T18:37:26.933372Z', 178s E - 'name': 'python3'}] 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.600000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c9df615-7295-44b8-94c6-4d46fedb836b 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c9df615-7295-44b8-94c6-4d46fedb836b 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5c9df615-7295-44b8-94c6-4d46fedb836b (::1) 0.820000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d5ff95b6-e35a-4f3d-b2f9-9b44f9ed26a9 (::1) 1.240000ms 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s _____________________ AsyncKernelAPITest.test_connections ______________________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpnuo082b_/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpnuo082b_/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnuo082b_/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnuo082b_/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnuo082b_/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnuo082b_/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpnuo082b_/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-d95cf414-28de-4ac1-bfbf-3e6cb95d55a2.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39743 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34799 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d95cf414-28de-4ac1-bfbf-3e6cb95d55a2, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.000000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 0.530000ms 178s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2/channels 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 178s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45979 178s DEBUG NotebookApp:kernelmanager.py:423 activity on d95cf414-28de-4ac1-bfbf-3e6cb95d55a2: status (starting) 178s DEBUG NotebookApp:kernelmanager.py:423 activity on d95cf414-28de-4ac1-bfbf-3e6cb95d55a2: status (busy) 178s 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/'}]} 178s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel d95cf414-28de-4ac1-bfbf-3e6cb95d55a2) to 5.4 (client). 178s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2/channels (::1) 609.700000ms 178s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2/channels 178s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34799 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45979 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39743 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51623 178s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 178s Setting websocket_ping_timeout=30000 178s DEBUG NotebookApp:kernelmanager.py:423 activity on d95cf414-28de-4ac1-bfbf-3e6cb95d55a2: status (idle) 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 0.550000ms 178s DEBUG NotebookApp:handlers.py:579 Websocket closed d95cf414-28de-4ac1-bfbf-3e6cb95d55a2:4f8686d5-218beaa05d1905d3b2d64c32 178s INFO NotebookApp:kernelmanager.py:222 Starting buffering for d95cf414-28de-4ac1-bfbf-3e6cb95d55a2:4f8686d5-218beaa05d1905d3b2d64c32 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 0.490000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 0.480000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 6.370000ms referer=None 178s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 178s 178s self = 178s 178s def tearDown(self): 178s for k in self.kern_api.list().json(): 178s > self.kern_api.shutdown(k['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-a9fca9a4-2a61-4e76-9ad3-e4d02e60d930.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50637 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36477 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9fca9a4-2a61-4e76-9ad3-e4d02e60d930, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.540000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 (::1) 0.600000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a9fca9a4-2a61-4e76-9ad3-e4d02e60d930', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 (::1) 12.120000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 178s from ._casefix import _EXTRA_CASES 178s File "", line 480, in _lock_unlock_module 178s File "", line 374, in release 178s KeyboardInterrupt 178s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 178s 178s self = 178s 178s def test_kernel_handler(self): 178s # GET kernel with given id 178s kid = self.kern_api.start().json()['id'] 178s r = self.kern_api.get(kid) 178s kern1 = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kern1, dict) 178s self.assertIn('id', kern1) 178s self.assertEqual(kern1['id'], kid) 178s 178s # Request a bad kernel id and check that a JSON 178s # message is returned! 178s bad_id = '111-111-111-111-111' 178s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 178s self.kern_api.get(bad_id) 178s 178s # DELETE kernel with id 178s > r = self.kern_api.shutdown(kid) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-79929803-b9df-451d-8fe3-1e70f87b4875.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35867 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37149 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79929803-b9df-451d-8fe3-1e70f87b4875, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.700000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875 (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s 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 178s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 178s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79929803-b9df-451d-8fe3-1e70f87b4875 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79929803-b9df-451d-8fe3-1e70f87b4875 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875 (::1) 6.300000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 (::1) 0.610000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79929803-b9df-451d-8fe3-1e70f87b4875 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79929803-b9df-451d-8fe3-1e70f87b4875 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/79929803-b9df-451d-8fe3-1e70f87b4875 (::1) 0.580000ms 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 178s class PureWindowsPath(PurePath): 178s ...<7 lines>... 178s __slots__ = () 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 178s import ntpath 178s File "/usr/lib/python3.14/ntpath.py", line 45, in 178s from _winapi import ( 178s ...<2 lines>... 178s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "", line 1292, in find_spec 178s File "", line 1266, in _get_spec 178s File "", line 1393, in find_spec 178s File "", line 133, in _path_join 178s KeyboardInterrupt 178s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 178s 178s self = 178s 178s def test_main_kernel_handler(self): 178s # POST request 178s r = self.kern_api.start() 178s kern1 = r.json() 178s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 178s self.assertEqual(r.status_code, 201) 178s self.assertIsInstance(kern1, dict) 178s 178s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 178s expected_csp = '; '.join([ 178s "frame-ancestors 'self'", 178s 'report-uri ' + report_uri, 178s "default-src 'none'" 178s ]) 178s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 178s 178s # GET request 178s r = self.kern_api.list() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(r.json(), list) 178s self.assertEqual(r.json()[0]['id'], kern1['id']) 178s self.assertEqual(r.json()[0]['name'], kern1['name']) 178s 178s # create another kernel and check that they both are added to the 178s # list of kernels from a GET request 178s kern2 = self.kern_api.start().json() 178s assert isinstance(kern2, dict) 178s r = self.kern_api.list() 178s kernels = r.json() 178s self.assertEqual(r.status_code, 200) 178s assert isinstance(kernels, list) 178s self.assertEqual(len(kernels), 2) 178s 178s # Interrupt a kernel 178s r = self.kern_api.interrupt(kern2['id']) 178s self.assertEqual(r.status_code, 204) 178s 178s # Restart a kernel 178s > r = self.kern_api.restart(kern2['id']) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 178s return self._req('POST', url_path_join(id, 'restart')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5672811e-fdb5-409b-b9c8-bffc2767e1aa/restart 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ----------------------------- Captured stderr call ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 178s from . import _parser 178s File "", line 648, in parent 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-eb247891-ed82-4c07-99d6-98a24dc1d3c6.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32897 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46281 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: eb247891-ed82-4c07-99d6-98a24dc1d3c6, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.930000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnuo082b_/runtime/kernel-5672811e-fdb5-409b-b9c8-bffc2767e1aa.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59433 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49699 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5672811e-fdb5-409b-b9c8-bffc2767e1aa, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5672811e-fdb5-409b-b9c8-bffc2767e1aa 178s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5672811e-fdb5-409b-b9c8-bffc2767e1aa/interrupt (::1) 0.630000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 178s yield maybe_future(km.restart_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 178s result = coro.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 178s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 178s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 178s yield self # This tells Task to wait for completion. 178s ^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 178s await ensure_async(kernel.restart_kernel(now=now)) 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 178s await self._async_shutdown_kernel(now=now, restart=True) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5672811e-fdb5-409b-b9c8-bffc2767e1aa/restart (::1) 3.350000ms referer=None 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 178s yield maybe_future(km.shutdown_kernel(kernel_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 178s 178s self = 178s 178s def test_no_kernels(self): 178s """Make sure there are no kernels running at the start""" 178s kernels = self.kern_api.list().json() 178s > self.assertEqual(kernels, []) 178s E AssertionError: Lists differ: [{'id': 'eb247891-ed82-4c07-99d6-98a24dc1d[281 chars]: 0}] != [] 178s E 178s E First list contains 2 additional elements. 178s E First extra element 0: 178s E {'id': 'eb247891-ed82-4c07-99d6-98a24dc1d3c6', 'name': 'python3', 'last_activity': '2026-01-22T18:37:27.948358Z', 'execution_state': 'starting', 'connections': 0} 178s E 178s E + [] 178s E - [{'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': 'eb247891-ed82-4c07-99d6-98a24dc1d3c6', 178s E - 'last_activity': '2026-01-22T18:37:27.948358Z', 178s E - 'name': 'python3'}, 178s E - {'connections': 0, 178s E - 'execution_state': 'starting', 178s E - 'id': '5672811e-fdb5-409b-b9c8-bffc2767e1aa', 178s E - 'last_activity': '2026-01-22T18:37:27.972081Z', 178s E - 'name': 'python3'}] 178s 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eb247891-ed82-4c07-99d6-98a24dc1d3c6 (::1) 0.580000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5672811e-fdb5-409b-b9c8-bffc2767e1aa 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5672811e-fdb5-409b-b9c8-bffc2767e1aa 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9fca9a4-2a61-4e76-9ad3-e4d02e60d930 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eb247891-ed82-4c07-99d6-98a24dc1d3c6 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d95cf414-28de-4ac1-bfbf-3e6cb95d55a2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79929803-b9df-451d-8fe3-1e70f87b4875 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s __________________________ SessionAPITest.test_create __________________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_hosxcmr/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_hosxcmr/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_hosxcmr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_hosxcmr/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_hosxcmr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_hosxcmr/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_hosxcmr/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-05d58b7c-9f93-43ea-9261-a21bab61ce78.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56587 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58683 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05d58b7c-9f93-43ea-9261-a21bab61ce78, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.020000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243 (::1) 0.590000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05d58b7c-9f93-43ea-9261-a21bab61ce78 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05d58b7c-9f93-43ea-9261-a21bab61ce78 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243 (::1) 8.050000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 106, in 178s from .decoder import JSONDecoder, JSONDecodeError 178s File "/usr/lib/python3.14/json/decoder.py", line 5, in 178s from json import scanner 178s File "/usr/lib/python3.14/json/scanner.py", line 13, in 178s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 178s File "/usr/lib/python3.14/enum.py", line 1591, in __or__ 178s return self.__class__(value | other_value) 178s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 707, in __call__ 178s return cls.__new__(cls, value) 178s ~~~~~~~~~~~^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 1177, in __new__ 178s result = cls._missing_(value) 178s File "/usr/lib/python3.14/enum.py", line 1445, in _missing_ 178s @classmethod 178s 178s KeyboardInterrupt 178s __________________ SessionAPITest.test_create_console_session __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fbb7c3c9-6876-46a9-8336-b4d7903ed052 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-056307b4-6889-40ae-a00c-749ce30d8571.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49761 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55773 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 056307b4-6889-40ae-a00c-749ce30d8571, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.800000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05d58b7c-9f93-43ea-9261-a21bab61ce78 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05d58b7c-9f93-43ea-9261-a21bab61ce78 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cd0c648e-fdfd-458d-a06d-1489ee548243 (::1) 0.940000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 056307b4-6889-40ae-a00c-749ce30d8571 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 056307b4-6889-40ae-a00c-749ce30d8571 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fbb7c3c9-6876-46a9-8336-b4d7903ed052 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fbb7c3c9-6876-46a9-8336-b4d7903ed052', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fbb7c3c9-6876-46a9-8336-b4d7903ed052 (::1) 11.420000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 178s import json 178s File "/usr/lib/python3.14/json/__init__.py", line 107, in 178s from .encoder import JSONEncoder 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1261, in _find_spec 178s File "", line 1229, in __exit__ 178s KeyboardInterrupt 178s ____________________ SessionAPITest.test_create_deprecated _____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2cde9c47-2efe-461f-8284-f76df2122b2a 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-c52325e3-1d07-4758-a2e8-43ff2ab1ad24.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60799 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39167 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: c52325e3-1d07-4758-a2e8-43ff2ab1ad24, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.860000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.890000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 056307b4-6889-40ae-a00c-749ce30d8571 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 056307b4-6889-40ae-a00c-749ce30d8571 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fbb7c3c9-6876-46a9-8336-b4d7903ed052 (::1) 0.810000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c52325e3-1d07-4758-a2e8-43ff2ab1ad24 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c52325e3-1d07-4758-a2e8-43ff2ab1ad24 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2cde9c47-2efe-461f-8284-f76df2122b2a (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2cde9c47-2efe-461f-8284-f76df2122b2a', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 6, in 178s import fnmatch 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 833, in get_code 178s File "", line 407, in _check_name_wrapper 178s File "", line 942, in get_filename 178s KeyboardInterrupt 178s ___________________ SessionAPITest.test_create_file_session ____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b6b66b0b-3a47-41f9-87b6-2af38a19c1db 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-db758f75-fc8a-4736-8871-f3398dfbb33d.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47919 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35549 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: db758f75-fc8a-4736-8871-f3398dfbb33d, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.200000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c52325e3-1d07-4758-a2e8-43ff2ab1ad24 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c52325e3-1d07-4758-a2e8-43ff2ab1ad24 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2cde9c47-2efe-461f-8284-f76df2122b2a (::1) 1.930000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db758f75-fc8a-4736-8871-f3398dfbb33d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db758f75-fc8a-4736-8871-f3398dfbb33d 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b6b66b0b-3a47-41f9-87b6-2af38a19c1db (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b6b66b0b-3a47-41f9-87b6-2af38a19c1db', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 20, in 178s import pwd 178s KeyboardInterrupt 178s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 178s 178s self = 178s 178s def test_create_with_kernel_id(self): 178s # create a new kernel 178s r = self.request('POST', 'api/kernels') 178s r.raise_for_status() 178s kernel = r.json() 178s 178s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 178s self.assertEqual(resp.status_code, 201) 178s newsession = resp.json() 178s self.assertIn('id', newsession) 178s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 178s self.assertEqual(newsession['kernel']['id'], kernel['id']) 178s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 178s 178s sessions = self.sess_api.list().json() 178s > self.assertEqual(sessions, [newsession]) 178s E AssertionError: Lists differ: [{'id': 'b6b66b0b-3a47-41f9-87b6-2af38a19c1db', 'p[553 chars]ne}}] != [{'id': '77e88e3a-1d55-4021-9682-a64a0446d001', 'p[279 chars]ne}}] 178s E 178s E First differing element 0: 178s E {'id': 'b6b66b0b-3a47-41f9-87b6-2af38a19c1db', 'p[218 chars]: 0}} 178s E {'id': '77e88e3a-1d55-4021-9682-a64a0446d001', 'p[278 chars]one}} 178s E 178s E First list contains 1 additional elements. 178s E First extra element 1: 178s E {'id': '77e88e3a-1d55-4021-9682-a64a0446d001', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'b609c5e5-5b25-45df-bcf1-4ae972b17548', 'name': 'python3', 'last_activity': '2026-01-22T18:37:28.436252Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 178s E 178s E Diff is 830 characters long. Set self.maxDiff to None to see it. 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-b609c5e5-5b25-45df-bcf1-4ae972b17548.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39445 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35457 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: b609c5e5-5b25-45df-bcf1-4ae972b17548, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.120000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.710000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db758f75-fc8a-4736-8871-f3398dfbb33d 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db758f75-fc8a-4736-8871-f3398dfbb33d 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b6b66b0b-3a47-41f9-87b6-2af38a19c1db (::1) 1.990000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b609c5e5-5b25-45df-bcf1-4ae972b17548 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b609c5e5-5b25-45df-bcf1-4ae972b17548 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 8.380000ms referer=None 178s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ---------------------------- Captured stderr setup ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 49, in 178s import signal 178s File "/usr/lib/python3.14/signal.py", line 7, in 178s _IntEnum._convert_( 178s ~~~~~~~~~~~~~~~~~~^ 178s 'Signals', __name__, 178s ^^^^^^^^^^^^^^^^^^^^ 178s ...<2 lines>... 178s and (name.startswith('SIG') and not name.startswith('SIG_')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s or name.startswith('CTRL_')) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 178s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 178s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 178s setattr(enum_class, name, member) 178s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 178s def __setattr__(cls, name, value): 178s 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.960000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-7090161a-470f-473d-a1b7-16bbbe4b0a08.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34603 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42969 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7090161a-470f-473d-a1b7-16bbbe4b0a08, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b609c5e5-5b25-45df-bcf1-4ae972b17548 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b609c5e5-5b25-45df-bcf1-4ae972b17548 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 1.140000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7090161a-470f-473d-a1b7-16bbbe4b0a08 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7090161a-470f-473d-a1b7-16bbbe4b0a08 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 11.520000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 381, in 178s import copyreg 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "", line 1292, in find_spec 178s File "", line 1266, in _get_spec 178s File "", line 1365, in find_spec 178s File "", line 152, in _path_stat 178s KeyboardInterrupt 178s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-e6679a78-8f55-4d67-8c39-27f4f30475aa.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48809 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55539 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: e6679a78-8f55-4d67-8c39-27f4f30475aa, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7090161a-470f-473d-a1b7-16bbbe4b0a08 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7090161a-470f-473d-a1b7-16bbbe4b0a08 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 19.020000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6679a78-8f55-4d67-8c39-27f4f30475aa 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6679a78-8f55-4d67-8c39-27f4f30475aa 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/77e88e3a-1d55-4021-9682-a64a0446d001 (::1) 9.940000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 178s class PureWindowsPath(PurePath): 178s ...<7 lines>... 178s __slots__ = () 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 178s import ntpath 178s File "/usr/lib/python3.14/ntpath.py", line 557, in 178s from nt import _findfirstfile, _getfinalpathname, readlink as _nt_readlink 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "", line 1292, in find_spec 178s File "", line 1266, in _get_spec 178s File "", line 1365, in find_spec 178s File "", line 152, in _path_stat 178s KeyboardInterrupt 178s _______________________ SessionAPITest.test_modify_type ________________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d88535f9-d6c7-462f-8058-9626f37179a9 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_hosxcmr/runtime/kernel-c1e11d94-74f6-4e48-b966-91f3b34a6db7.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46849 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59497 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: c1e11d94-74f6-4e48-b966-91f3b34a6db7, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_hosxcmr/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.250000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d88535f9-d6c7-462f-8058-9626f37179a9 (::1) 2.250000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c1e11d94-74f6-4e48-b966-91f3b34a6db7 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1e11d94-74f6-4e48-b966-91f3b34a6db7 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d88535f9-d6c7-462f-8058-9626f37179a9 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d88535f9-d6c7-462f-8058-9626f37179a9', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 178s yielded = self.gen.send(value) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 178s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 178s stopper = ensure_async(km.shutdown_kernel(now, restart)) 178s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 178s return _runner_map[name].run(inner) 178s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 178s return fut.result(None) 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 178s return self.__get_result() 178s ~~~~~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 178s raise self._exception 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 20, in 178s import pwd 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 109, in find_spec 178s return method() 178s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 108, in 178s method = getattr(self, method_name, lambda: None) 178s 178s KeyboardInterrupt 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1e11d94-74f6-4e48-b966-91f3b34a6db7 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s _______________________ AsyncSessionAPITest.test_create ________________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d3550283-8792-4a8f-bd5f-aeb4fda668cd 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log setup ------------------------------ 178s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpztcg3do_/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpztcg3do_/etc/jupyter'] for config files 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpztcg3do_/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpztcg3do_/config 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpztcg3do_/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 178s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpztcg3do_/config 178s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpztcg3do_/notebooks 178s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 178s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 178s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 178s WARNING NotebookApp:handlers.py:612 Forbidden 178s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.490000ms referer=None 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-879d1598-031a-4e63-b5f4-3fe86a510f9f.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45515 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59197 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 879d1598-031a-4e63-b5f4-3fe86a510f9f, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.120000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d3550283-8792-4a8f-bd5f-aeb4fda668cd (::1) 2.050000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 879d1598-031a-4e63-b5f4-3fe86a510f9f 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 879d1598-031a-4e63-b5f4-3fe86a510f9f 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d3550283-8792-4a8f-bd5f-aeb4fda668cd (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d3550283-8792-4a8f-bd5f-aeb4fda668cd', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 178s gc.collect() 178s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 178s 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 851, in get_code 178s File "", line 950, in get_data 178s KeyboardInterrupt 178s _______________ AsyncSessionAPITest.test_create_console_session ________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0466576c-a3e6-45fd-a0fd-2252b98b296b 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-37e48293-8517-49c5-821a-63e44004f0b7.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43889 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57227 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37e48293-8517-49c5-821a-63e44004f0b7, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.070000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 879d1598-031a-4e63-b5f4-3fe86a510f9f 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 879d1598-031a-4e63-b5f4-3fe86a510f9f 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d3550283-8792-4a8f-bd5f-aeb4fda668cd (::1) 0.780000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37e48293-8517-49c5-821a-63e44004f0b7 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e48293-8517-49c5-821a-63e44004f0b7 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0466576c-a3e6-45fd-a0fd-2252b98b296b (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0466576c-a3e6-45fd-a0fd-2252b98b296b', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0466576c-a3e6-45fd-a0fd-2252b98b296b (::1) 7.040000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 143, in 178s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 178s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 1780, in convert_class 178s if _is_dunder(name) or _is_private(cls_name, name) or _is_sunder(name) or _is_descriptor(obj): 178s ~~~~~~~~~~^^^^^^ 178s File "/usr/lib/python3.14/enum.py", line 46, in _is_dunder 178s def _is_dunder(name): 178s 178s KeyboardInterrupt 178s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0226db6b-4ced-4f17-b726-1262dc82bb84 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-fa795949-1b13-4937-a7c6-06aac09077c2.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36093 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49643 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: fa795949-1b13-4937-a7c6-06aac09077c2, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.330000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.920000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37e48293-8517-49c5-821a-63e44004f0b7 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e48293-8517-49c5-821a-63e44004f0b7 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0466576c-a3e6-45fd-a0fd-2252b98b296b (::1) 2.020000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa795949-1b13-4937-a7c6-06aac09077c2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa795949-1b13-4937-a7c6-06aac09077c2 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0226db6b-4ced-4f17-b726-1262dc82bb84 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0226db6b-4ced-4f17-b726-1262dc82bb84', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0226db6b-4ced-4f17-b726-1262dc82bb84 (::1) 7.100000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s KeyboardInterrupt 178s _________________ AsyncSessionAPITest.test_create_file_session _________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a3201717-b893-4bc7-9a51-aaadf98290eb 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-dc12ba2f-ded8-46ea-b678-a5a05abbf738.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48357 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44673 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc12ba2f-ded8-46ea-b678-a5a05abbf738, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.650000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.860000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa795949-1b13-4937-a7c6-06aac09077c2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa795949-1b13-4937-a7c6-06aac09077c2 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0226db6b-4ced-4f17-b726-1262dc82bb84 (::1) 0.750000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a3201717-b893-4bc7-9a51-aaadf98290eb (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a3201717-b893-4bc7-9a51-aaadf98290eb', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 179, in 178s class _ZeroSentinel(int): 178s pass 178s KeyboardInterrupt 178s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 178s 178s self = 178s 178s def test_create_with_kernel_id(self): 178s # create a new kernel 178s r = self.request('POST', 'api/kernels') 178s r.raise_for_status() 178s kernel = r.json() 178s 178s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 178s self.assertEqual(resp.status_code, 201) 178s newsession = resp.json() 178s self.assertIn('id', newsession) 178s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 178s self.assertEqual(newsession['kernel']['id'], kernel['id']) 178s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 178s 178s sessions = self.sess_api.list().json() 178s > self.assertEqual(sessions, [newsession]) 178s E AssertionError: Lists differ: [{'id': 'a3201717-b893-4bc7-9a51-aaadf98290eb', 'p[553 chars]ne}}] != [{'id': 'db304118-a460-4e84-ae09-fba85d8178a6', 'p[279 chars]ne}}] 178s E 178s E First differing element 0: 178s E {'id': 'a3201717-b893-4bc7-9a51-aaadf98290eb', 'p[218 chars]: 0}} 178s E {'id': 'db304118-a460-4e84-ae09-fba85d8178a6', 'p[278 chars]one}} 178s E 178s E First list contains 1 additional elements. 178s E First extra element 1: 178s E {'id': 'db304118-a460-4e84-ae09-fba85d8178a6', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'd7fa687a-35fb-4c80-872f-c455b23d3986', 'name': 'python3', 'last_activity': '2026-01-22T18:37:29.111186Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 178s E 178s E Diff is 830 characters long. Set self.maxDiff to None to see it. 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-d7fa687a-35fb-4c80-872f-c455b23d3986.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58817 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39847 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7fa687a-35fb-4c80-872f-c455b23d3986, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.160000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.850000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3201717-b893-4bc7-9a51-aaadf98290eb (::1) 1.810000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7fa687a-35fb-4c80-872f-c455b23d3986 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7fa687a-35fb-4c80-872f-c455b23d3986 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ---------------------------- Captured stderr setup ----------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 178s from ipykernel import kernelapp as app 178s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 178s from .connect import * # noqa: F403 178s ^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 178s from subprocess import PIPE, Popen 178s File "/usr/lib/python3.14/subprocess.py", line 46, in 178s import locale 178s File "/usr/lib/python3.14/locale.py", line 46, in 178s from _locale import * 178s KeyboardInterrupt 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-10ae9d30-8b70-4434-bd8b-55efbe3cddba.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57737 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46085 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 10ae9d30-8b70-4434-bd8b-55efbe3cddba, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.580000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7fa687a-35fb-4c80-872f-c455b23d3986 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7fa687a-35fb-4c80-872f-c455b23d3986 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 1.470000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10ae9d30-8b70-4434-bd8b-55efbe3cddba 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ae9d30-8b70-4434-bd8b-55efbe3cddba 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 178s class PureWindowsPath(PurePath): 178s ...<7 lines>... 178s __slots__ = () 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 178s import ntpath 178s File "/usr/lib/python3.14/ntpath.py", line 277, in 178s from nt import _getvolumepathname 178s File "", line 1371, in _find_and_load 178s File "", line 1333, in _find_and_load_unlocked 178s File "", line 1267, in _find_spec 178s File "", line 1292, in find_spec 178s File "", line 1266, in _get_spec 178s File "", line 1365, in find_spec 178s File "", line 152, in _path_stat 178s KeyboardInterrupt 178s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-b3b61605-1479-4e6e-b843-031e0f782022.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60649 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53831 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3b61605-1479-4e6e-b843-031e0f782022, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10ae9d30-8b70-4434-bd8b-55efbe3cddba 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ae9d30-8b70-4434-bd8b-55efbe3cddba 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 16.570000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.730000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3b61605-1479-4e6e-b843-031e0f782022 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3b61605-1479-4e6e-b843-031e0f782022 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/db304118-a460-4e84-ae09-fba85d8178a6 (::1) 7.010000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 178s from ._casefix import _EXTRA_CASES 178s File "", line 1368, in _find_and_load 178s File "", line 415, in __init__ 178s KeyboardInterrupt 178s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 178s 178s @self.addCleanup 178s def cleanup_sessions(): 178s for session in self.sess_api.list().json(): 178s > self.sess_api.delete(session['id']) 178s 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 178s return self._req('DELETE', id) 178s ^^^^^^^^^^^^^^^^^^^^^^^ 178s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 178s response.raise_for_status() 178s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 178s 178s self = 178s 178s def raise_for_status(self): 178s """Raises :class:`HTTPError`, if one occurred.""" 178s 178s http_error_msg = "" 178s if isinstance(self.reason, bytes): 178s # We attempt to decode utf-8 first because some servers 178s # choose to localize their reason strings. If the string 178s # isn't utf-8, we fall back to iso-8859-1 for all other 178s # encodings. (See PR #3538) 178s try: 178s reason = self.reason.decode("utf-8") 178s except UnicodeDecodeError: 178s reason = self.reason.decode("iso-8859-1") 178s else: 178s reason = self.reason 178s 178s if 400 <= self.status_code < 500: 178s http_error_msg = ( 178s f"{self.status_code} Client Error: {reason} for url: {self.url}" 178s ) 178s 178s elif 500 <= self.status_code < 600: 178s http_error_msg = ( 178s f"{self.status_code} Server Error: {reason} for url: {self.url}" 178s ) 178s 178s if http_error_msg: 178s > raise HTTPError(http_error_msg, response=self) 178s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/05156009-516f-455e-9585-f48cc40fd2c6 178s 178s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 178s ------------------------------ Captured log call ------------------------------- 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 178s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpztcg3do_/runtime/kernel-331154c1-1b52-4f21-902b-8f4963e488dd.json'] 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45591 178s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41579 178s INFO NotebookApp:kernelmanager.py:179 Kernel started: 331154c1-1b52-4f21-902b-8f4963e488dd, name: python3 178s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpztcg3do_/notebooks/foo'} 178s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.530000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/05156009-516f-455e-9585-f48cc40fd2c6 (::1) 1.490000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 178s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 178s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 331154c1-1b52-4f21-902b-8f4963e488dd 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 331154c1-1b52-4f21-902b-8f4963e488dd 178s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/05156009-516f-455e-9585-f48cc40fd2c6 (::1) 178s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/05156009-516f-455e-9585-f48cc40fd2c6', version='HTTP/1.1', remote_ip='::1') 178s Traceback (most recent call last): 178s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 178s result = await result 178s ^^^^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 178s future.result() 178s ~~~~~~~~~~~~~^^ 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 178s yield maybe_future(sm.delete_session(session_id)) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 178s yielded = self.gen.throw(exc) 178s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 178s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 178s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 178s value = future.result() 178s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 178s raise self._exception.with_traceback(self._exception_tb) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 178s result = coro.send(None) 178s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 178s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 178s raise km.ready.exception() # type: ignore[misc] 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 178s await kernel_awaitable 178s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 178s result = await obj 178s ^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 178s raise e 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 178s out = await method(self, *args, **kwargs) 178s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 178s await self._async_finish_shutdown(restart=restart) 178s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 178s await asyncio.wait_for( 178s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 178s ) 178s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 178s async with timeouts.timeout(timeout): 178s ~~~~~~~~~~~~~~~~^^^^^^^^^ 178s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 178s raise RuntimeError("Timeout should be used inside a task") 178s RuntimeError: Timeout should be used inside a task 178s WARNING NotebookApp:handlers.py:612 Unhandled error 178s ERROR NotebookApp:log.py:55 { 178s "Host": "localhost:12341", 178s "Accept": "*/*", 178s "User-Agent": "python-requests/2.32.5" 178s } 178s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/05156009-516f-455e-9585-f48cc40fd2c6 (::1) 7.760000ms referer=None 178s --------------------------- Captured stderr teardown --------------------------- 178s Traceback (most recent call last): 178s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 178s return _run_code(code, main_globals, None, 178s "__main__", mod_spec) 178s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 178s exec(code, run_globals) 178s ~~~~^^^^^^^^^^^^^^^^^^^ 178s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 178s from pathlib import Path 178s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 178s from glob import _StringGlobber, _no_recurse_symlinks 178s File "/usr/lib/python3.14/glob.py", line 5, in 178s import re 178s File "/usr/lib/python3.14/re/__init__.py", line 126, in 178s from . import _compiler, _parser 178s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 178s from ._casefix import _EXTRA_CASES 178s File "", line 1371, in _find_and_load 178s File "", line 1342, in _find_and_load_unlocked 178s File "", line 938, in _load_unlocked 178s File "", line 755, in exec_module 178s File "", line 851, in get_code 178s File "", line 950, in get_data 178s KeyboardInterrupt 178s ---------------------------- Captured log teardown ----------------------------- 178s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e48293-8517-49c5-821a-63e44004f0b7 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3b61605-1479-4e6e-b843-031e0f782022 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc12ba2f-ded8-46ea-b678-a5a05abbf738 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7fa687a-35fb-4c80-872f-c455b23d3986 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa795949-1b13-4937-a7c6-06aac09077c2 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ae9d30-8b70-4434-bd8b-55efbe3cddba 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 879d1598-031a-4e63-b5f4-3fe86a510f9f 178s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 331154c1-1b52-4f21-902b-8f4963e488dd 178s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 178s =============================== warnings summary =============================== 178s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 178s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 178s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 178s return LooseVersion(v) >= LooseVersion(check) 178s 178s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 178s services/kernels/tests/test_kernels_api.py: 68 warnings 178s services/sessions/tests/test_sessions_api.py: 106 warnings 178s /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). 178s dt = unaware(*args, **kwargs) 178s 178s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 178s /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 178s pytestmark = pytest.mark.integration_tests 178s 178s services/kernels/tests/test_kernels_api.py: 6 warnings 178s services/sessions/tests/test_sessions_api.py: 6 warnings 178s /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 178s policy = events.get_event_loop_policy() 178s 178s services/kernels/tests/test_kernels_api.py: 24 warnings 178s services/sessions/tests/test_sessions_api.py: 19 warnings 178s /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 178s loop = events.get_event_loop_policy().get_event_loop() 178s 178s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 178s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 178s loop.make_current() 178s 178s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 178s /usr/lib/python3.14/threading.py:144: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 178s return _CRLock(*args, **kwargs) 178s Enable tracemalloc to get traceback where the object was allocated. 178s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 178s 178s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 178s =========================== short test summary info ============================ 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 178s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 178s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 178s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 178s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 178s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 178s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 178s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 178s ===== 25 failed, 2 passed, 303 deselected, 235 warnings, 4 errors in 6.85s ===== 179s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 179s *** 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 194s ============================= test session starts ============================== 194s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 194s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 194s plugins: typeguard-4.4.4 194s collected 330 items / 305 deselected / 25 selected 194s run-last-failure: rerun previous 25 failures 194s 194s services/kernels/tests/test_kernels_api.py /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 194s gc.collect() 194s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 194s FFFEFFFFFEF [ 36%] 194s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 194s 194s ==================================== ERRORS ==================================== 194s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 194s 194s self = 194s 194s def tearDown(self): 194s for k in self.kern_api.list().json(): 194s > self.kern_api.shutdown(k['id']) 194s 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 194s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 194s return self._req('DELETE', id) 194s ^^^^^^^^^^^^^^^^^^^^^^^ 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 194s response.raise_for_status() 194s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 194s 194s self = 194s 194s def raise_for_status(self): 194s """Raises :class:`HTTPError`, if one occurred.""" 194s 194s http_error_msg = "" 194s if isinstance(self.reason, bytes): 194s # We attempt to decode utf-8 first because some servers 194s # choose to localize their reason strings. If the string 194s # isn't utf-8, we fall back to iso-8859-1 for all other 194s # encodings. (See PR #3538) 194s try: 194s reason = self.reason.decode("utf-8") 194s except UnicodeDecodeError: 194s reason = self.reason.decode("iso-8859-1") 194s else: 194s reason = self.reason 194s 194s if 400 <= self.status_code < 500: 194s http_error_msg = ( 194s f"{self.status_code} Client Error: {reason} for url: {self.url}" 194s ) 194s 194s elif 500 <= self.status_code < 600: 194s http_error_msg = ( 194s f"{self.status_code} Server Error: {reason} for url: {self.url}" 194s ) 194s 194s if http_error_msg: 194s > raise HTTPError(http_error_msg, response=self) 194s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b 194s 194s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 194s ----------------------------- Captured stderr call ----------------------------- 194s Traceback (most recent call last): 194s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 194s return _run_code(code, main_globals, None, 194s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 194s exec(code, run_globals) 194s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 194s from pathlib import Path 194s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 194s from pathlib._os import ( 194s File "", line 1371, in _find_and_load 194s File "", line 1342, in _find_and_load_unlocked 194s File "", line 938, in _load_unlocked 194s File "", line 755, in exec_module 194s File "", line 851, in get_code 194s File "", line 951, in get_data 194s KeyboardInterrupt 194s Traceback (most recent call last): 194s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 194s return _run_code(code, main_globals, None, 194s "__main__", mod_spec) 194s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 194s exec(code, run_globals) 194s ~~~~^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 194s from ipykernel import kernelapp as app 194s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 194s from .connect import * # noqa: F403 194s ^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 194s import jupyter_client 194s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 194s from .asynchronous import AsyncKernelClient 194s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 194s from .client import AsyncKernelClient # noqa 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 194s import zmq.asyncio 194s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 194s import asyncio 194s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 194s from .base_events import * 194s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 194s import concurrent.futures 194s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 194s from concurrent.futures._base import (FIRST_COMPLETED, 194s ...<9 lines>... 194s as_completed) 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 319, in 194s class Future(object): 194s ...<241 lines>... 194s __class_getitem__ = classmethod(types.GenericAlias) 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 319, in Future 194s class Future(object): 194s 194s KeyboardInterrupt 194s ------------------------------ Captured log call ------------------------------- 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 194s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-6d426b3c-130c-4527-b7a4-195584ce620b.json'] 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55617 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38273 194s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6d426b3c-130c-4527-b7a4-195584ce620b, name: python3 194s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 194s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.050000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 194s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-93a54be5-fa95-44cb-8682-c8cf195d005e.json'] 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35911 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35191 194s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93a54be5-fa95-44cb-8682-c8cf195d005e, name: python3 194s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 194s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.790000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.750000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 93a54be5-fa95-44cb-8682-c8cf195d005e 194s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/93a54be5-fa95-44cb-8682-c8cf195d005e/interrupt (::1) 3.110000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 194s yield maybe_future(km.restart_kernel(kernel_id)) 194s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 194s value = future.result() 194s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 194s raise self._exception.with_traceback(self._exception_tb) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 194s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 194s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 194s return _runner_map[name].run(inner) 194s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 194s return fut.result(None) 194s ~~~~~~~~~~^^^^^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 194s return self.__get_result() 194s ~~~~~~~~~~~~~~~~~^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 194s raise self._exception 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 194s await ensure_async(kernel.restart_kernel(now=now)) 194s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 194s return _runner_map[name].run(inner) 194s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 194s return fut.result(None) 194s ~~~~~~~~~~^^^^^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 194s return self.__get_result() 194s ~~~~~~~~~~~~~~~~~^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 194s raise self._exception 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 194s await self._async_shutdown_kernel(now=now, restart=True) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 194s raise e 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s ERROR NotebookApp:log.py:55 { 194s "Host": "localhost:12341", 194s "Accept": "*/*", 194s "User-Agent": "python-requests/2.32.5" 194s } 194s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/93a54be5-fa95-44cb-8682-c8cf195d005e/restart (::1) 8.340000ms referer=None 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d426b3c-130c-4527-b7a4-195584ce620b 194s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d426b3c-130c-4527-b7a4-195584ce620b 194s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b (::1) 194s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b', version='HTTP/1.1', remote_ip='::1') 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 194s result = await result 194s ^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 194s yielded = ctx_run(next, result) 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 194s yield maybe_future(km.shutdown_kernel(kernel_id)) 194s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 194s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 194s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 194s return _runner_map[name].run(inner) 194s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 194s return fut.result(None) 194s ~~~~~~~~~~^^^^^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 194s return self.__get_result() 194s ~~~~~~~~~~~~~~~~~^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 194s raise self._exception 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 194s stopper = ensure_async(km.shutdown_kernel(now, restart)) 194s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 194s return _runner_map[name].run(inner) 194s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 194s return fut.result(None) 194s ~~~~~~~~~~^^^^^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 194s return self.__get_result() 194s ~~~~~~~~~~~~~~~~~^^ 194s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 194s raise self._exception 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 194s raise e 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s WARNING NotebookApp:handlers.py:612 Unhandled error 194s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 194s 194s self = 194s 194s def tearDown(self): 194s for k in self.kern_api.list().json(): 194s > self.kern_api.shutdown(k['id']) 194s 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 194s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 194s return self._req('DELETE', id) 194s ^^^^^^^^^^^^^^^^^^^^^^^ 194s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 194s response.raise_for_status() 194s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 194s 194s self = 194s 194s def raise_for_status(self): 194s """Raises :class:`HTTPError`, if one occurred.""" 194s 194s http_error_msg = "" 194s if isinstance(self.reason, bytes): 194s # We attempt to decode utf-8 first because some servers 194s # choose to localize their reason strings. If the string 194s # isn't utf-8, we fall back to iso-8859-1 for all other 194s # encodings. (See PR #3538) 194s try: 194s reason = self.reason.decode("utf-8") 194s except UnicodeDecodeError: 194s reason = self.reason.decode("iso-8859-1") 194s else: 194s reason = self.reason 194s 194s if 400 <= self.status_code < 500: 194s http_error_msg = ( 194s f"{self.status_code} Client Error: {reason} for url: {self.url}" 194s ) 194s 194s elif 500 <= self.status_code < 600: 194s http_error_msg = ( 194s f"{self.status_code} Server Error: {reason} for url: {self.url}" 194s ) 194s 194s if http_error_msg: 194s > raise HTTPError(http_error_msg, response=self) 194s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4 194s 194s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 194s ----------------------------- Captured stderr call ----------------------------- 194s Traceback (most recent call last): 194s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 194s return _run_code(code, main_globals, None, 194s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 194s exec(code, run_globals) 194s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 194s from pathlib import Path 194s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 194s from glob import _StringGlobber, _no_recurse_symlinks 194s File "/usr/lib/python3.14/glob.py", line 5, in 194s import re 194s File "", line 1371, in _find_and_load 194s File "", line 1342, in _find_and_load_unlocked 194s File "", line 924, in _load_unlocked 194s File "", line 822, in module_from_spec 194s File "", line 801, in _init_module_attrs 194s File "", line 641, in cached 194s File "", line 372, in _get_cached 194s File "", line 270, in cache_from_source 194s KeyboardInterrupt 194s ------------------------------ Captured log call ------------------------------- 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 194s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-cbef325d-bacc-46a5-b67c-fa37742c32c4.json'] 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40915 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59999 194s INFO NotebookApp:kernelmanager.py:179 Kernel started: cbef325d-bacc-46a5-b67c-fa37742c32c4, name: python3 194s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 194s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.780000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 194s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-c6208102-5c8f-49a6-9c05-8cac468a1438.json'] 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43707 194s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45803 194s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6208102-5c8f-49a6-9c05-8cac468a1438, name: python3 194s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 194s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.110000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c6208102-5c8f-49a6-9c05-8cac468a1438 194s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438/interrupt (::1) 4.680000ms 194s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 194s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 194s Traceback (most recent call last): 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 194s yield maybe_future(km.restart_kernel(kernel_id)) 194s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 194s value = future.result() 194s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 194s raise self._exception.with_traceback(self._exception_tb) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 194s result = coro.throw(exc) 194s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 194s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 194s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 194s yield self # This tells Task to wait for completion. 194s ^^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 194s future.result() 194s ~~~~~~~~~~~~~^^ 194s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 194s raise self._exception.with_traceback(self._exception_tb) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 194s result = coro.send(None) 194s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 194s await ensure_async(kernel.restart_kernel(now=now)) 194s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 194s result = await obj 194s ^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 194s await self._async_shutdown_kernel(now=now, restart=True) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 194s raise e 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 194s out = await method(self, *args, **kwargs) 194s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 194s await self._async_finish_shutdown(restart=restart) 194s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 194s await asyncio.wait_for( 194s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 194s ) 194s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 194s async with timeouts.timeout(timeout): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^ 194s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 194s raise RuntimeError("Timeout should be used inside a task") 194s RuntimeError: Timeout should be used inside a task 194s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438/restart (::1) 8.730000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbef325d-bacc-46a5-b67c-fa37742c32c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbef325d-bacc-46a5-b67c-fa37742c32c4 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 195s import jupyter_client 195s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 195s from .asynchronous import AsyncKernelClient 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 195s from .client import AsyncKernelClient # noqa 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 195s import zmq.asyncio 195s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 195s import asyncio 195s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 195s from .base_events import * 195s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 195s import concurrent.futures 195s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 195s from concurrent.futures._base import (FIRST_COMPLETED, 195s ...<9 lines>... 195s as_completed) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 195s import logging 195s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 195s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 195s File "/usr/lib/python3.14/traceback.py", line 12, in 195s import _colorize 195s File "/usr/lib/python3.14/_colorize.py", line 5, in 195s from dataclasses import dataclass, field, Field 195s File "/usr/lib/python3.14/dataclasses.py", line 222, in 195s _MODULE_IDENTIFIER_RE = re.compile(r'^(?:\s*(\w+)\s*\.)?\s*(\w+)') 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 195s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 195s p = _parse_sub(source, state, sub_verbose, nested + 1) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 857, in _parse 195s if not source.match(")"): 195s ~~~~~~~~~~~~^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 258, in match 195s self.__next() 195s ~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 240, in __next 195s def __next(self): 195s 195s KeyboardInterrupt 195s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-192ecc70-e113-4913-9465-87b6a8412b22.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49085 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59931 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 192ecc70-e113-4913-9465-87b6a8412b22, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.830000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d688b15c-4f22-4d0d-a9e6-09f29f46c20b (::1) 1.900000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 192ecc70-e113-4913-9465-87b6a8412b22 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 192ecc70-e113-4913-9465-87b6a8412b22 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 7.110000ms referer=None 195s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-0b4f0550-136d-46a5-b668-c345d38a525f.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58487 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49037 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b4f0550-136d-46a5-b668-c345d38a525f, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.230000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d (::1) 1.840000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b4f0550-136d-46a5-b668-c345d38a525f 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b4f0550-136d-46a5-b668-c345d38a525f 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s =================================== FAILURES =================================== 195s ______________________ KernelAPITest.test_default_kernel _______________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3ff531eb-ef2f-41d1-a0d1-86a08443dd2e 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp2mrh9s77/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp2mrh9s77/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2mrh9s77/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2mrh9s77/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2mrh9s77/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2mrh9s77/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp2mrh9s77/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.730000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-3ff531eb-ef2f-41d1-a0d1-86a08443dd2e.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37153 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54921 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3ff531eb-ef2f-4/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 195s gc.collect() 195s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 195s 1d1-a0d1-86a08443dd2e, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 58.650000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ff531eb-ef2f-41d1-a0d1-86a08443dd2e 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ff531eb-ef2f-41d1-a0d1-86a08443dd2e 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3ff531eb-ef2f-41d1-a0d1-86a08443dd2e (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3ff531eb-ef2f-41d1-a0d1-86a08443dd2e', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3ff531eb-ef2f-41d1-a0d1-86a08443dd2e (::1) 8.750000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s ______________________ KernelAPITest.test_kernel_handler _______________________ 195s 195s self = 195s 195s def test_kernel_handler(self): 195s # GET kernel with given id 195s kid = self.kern_api.start().json()['id'] 195s r = self.kern_api.get(kid) 195s kern1 = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kern1, dict) 195s self.assertIn('id', kern1) 195s self.assertEqual(kern1['id'], kid) 195s 195s # Request a bad kernel id and check that a JSON 195s # message is returned! 195s bad_id = '111-111-111-111-111' 195s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 195s self.kern_api.get(bad_id) 195s 195s # DELETE kernel with id 195s > r = self.kern_api.shutdown(kid) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/133a873a-8ea3-479c-bdc1-7ca7fc62e408 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-133a873a-8ea3-479c-bdc1-7ca7fc62e408.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34347 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60415 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 133a873a-8ea3-479c-bdc1-7ca7fc62e408, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.240000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/133a873a-8ea3-479c-bdc1-7ca7fc62e408 (::1) 1.230000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s 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 195s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 195s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.610000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 133a873a-8ea3-479c-bdc1-7ca7fc62e408 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 133a873a-8ea3-479c-bdc1-7ca7fc62e408 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/133a873a-8ea3-479c-bdc1-7ca7fc62e408 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/133a873a-8ea3-479c-bdc1-7ca7fc62e408', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/133a873a-8ea3-479c-bdc1-7ca7fc62e408 (::1) 8.570000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.870000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3ff531eb-ef2f-41d1-a0d1-86a08443dd2e 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3ff531eb-ef2f-41d1-a0d1-86a08443dd2e 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3ff531eb-ef2f-41d1-a0d1-86a08443dd2e (::1) 0.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 133a873a-8ea3-479c-bdc1-7ca7fc62e408 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 133a873a-8ea3-479c-bdc1-7ca7fc62e408 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 195s import json 195s File "/usr/lib/python3.14/json/__init__.py", line 0, in 195s 195s 195s r"""JSON (JavaScript Object Notation) is a subset of 195s 195s KeyboardInterrupt 195s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 195s 195s self = 195s 195s def test_main_kernel_handler(self): 195s # POST request 195s r = self.kern_api.start() 195s kern1 = r.json() 195s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 195s self.assertEqual(r.status_code, 201) 195s self.assertIsInstance(kern1, dict) 195s 195s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 195s expected_csp = '; '.join([ 195s "frame-ancestors 'self'", 195s 'report-uri ' + report_uri, 195s "default-src 'none'" 195s ]) 195s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 195s 195s # GET request 195s r = self.kern_api.list() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(r.json(), list) 195s self.assertEqual(r.json()[0]['id'], kern1['id']) 195s self.assertEqual(r.json()[0]['name'], kern1['name']) 195s 195s # create another kernel and check that they both are added to the 195s # list of kernels from a GET request 195s kern2 = self.kern_api.start().json() 195s assert isinstance(kern2, dict) 195s r = self.kern_api.list() 195s kernels = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kernels, list) 195s self.assertEqual(len(kernels), 2) 195s 195s # Interrupt a kernel 195s r = self.kern_api.interrupt(kern2['id']) 195s self.assertEqual(r.status_code, 204) 195s 195s # Restart a kernel 195s > r = self.kern_api.restart(kern2['id']) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 195s return self._req('POST', url_path_join(id, 'restart')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/93a54be5-fa95-44cb-8682-c8cf195d005e/restart 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 195s from pathlib._os import ( 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 851, in get_code 195s File "", line 951, in get_data 195s KeyboardInterrupt 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 195s import jupyter_client 195s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 195s from .asynchronous import AsyncKernelClient 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 195s from .client import AsyncKernelClient # noqa 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 195s import zmq.asyncio 195s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 195s import asyncio 195s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 195s from .base_events import * 195s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 195s import concurrent.futures 195s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 195s from concurrent.futures._base import (FIRST_COMPLETED, 195s ...<9 lines>... 195s as_completed) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 319, in 195s class Future(object): 195s ...<241 lines>... 195s __class_getitem__ = classmethod(types.GenericAlias) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 319, in Future 195s class Future(object): 195s 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-6d426b3c-130c-4527-b7a4-195584ce620b.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55617 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38273 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6d426b3c-130c-4527-b7a4-195584ce620b, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.050000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2mrh9s77/runtime/kernel-93a54be5-fa95-44cb-8682-c8cf195d005e.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35911 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35191 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93a54be5-fa95-44cb-8682-c8cf195d005e, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 93a54be5-fa95-44cb-8682-c8cf195d005e 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/93a54be5-fa95-44cb-8682-c8cf195d005e/interrupt (::1) 3.110000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/93a54be5-fa95-44cb-8682-c8cf195d005e/restart (::1) 8.340000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d426b3c-130c-4527-b7a4-195584ce620b 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d426b3c-130c-4527-b7a4-195584ce620b 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ________________________ KernelAPITest.test_no_kernels _________________________ 195s 195s self = 195s 195s def test_no_kernels(self): 195s """Make sure there are no kernels running at the start""" 195s kernels = self.kern_api.list().json() 195s > self.assertEqual(kernels, []) 195s E AssertionError: Lists differ: [{'id': '6d426b3c-130c-4527-b7a4-195584ce6[281 chars]: 0}] != [] 195s E 195s E First list contains 2 additional elements. 195s E First extra element 0: 195s E {'id': '6d426b3c-130c-4527-b7a4-195584ce620b', 'name': 'python3', 'last_activity': '2026-01-22T18:37:34.407745Z', 'execution_state': 'starting', 'connections': 0} 195s E 195s E + [] 195s E - [{'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': '6d426b3c-130c-4527-b7a4-195584ce620b', 195s E - 'last_activity': '2026-01-22T18:37:34.407745Z', 195s E - 'name': 'python3'}, 195s E - {'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': '93a54be5-fa95-44cb-8682-c8cf195d005e', 195s E - 'last_activity': '2026-01-22T18:37:34.437385Z', 195s E - 'name': 'python3'}] 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.180000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d426b3c-130c-4527-b7a4-195584ce620b 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d426b3c-130c-4527-b7a4-195584ce620b 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6d426b3c-130c-4527-b7a4-195584ce620b (::1) 2.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93a54be5-fa95-44cb-8682-c8cf195d005e 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93a54be5-fa95-44cb-8682-c8cf195d005e 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s _____________________ AsyncKernelAPITest.test_connections ______________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp8rv9a7x6/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp8rv9a7x6/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8rv9a7x6/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8rv9a7x6/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8rv9a7x6/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8rv9a7x6/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp8rv9a7x6/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-6f7188f6-9eff-4a66-b679-33118878e531.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51659 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55337 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6f7188f6-9eff-4a66-b679-33118878e531, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.250000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 0.540000ms 195s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531/channels 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 195s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53339 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (starting) 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (busy) 195s 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/'}]} 195s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 6f7188f6-9eff-4a66-b679-33118878e531) to 5.4 (client). 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (idle) 195s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531/channels (::1) 608.980000ms 195s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531/channels 195s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55337 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53339 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51659 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33419 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53339 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51659 195s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 195s Setting websocket_ping_timeout=30000 195s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 0.570000ms 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (busy) 195s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (busy) 195s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (idle) 195s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 6f7188f6-9eff-4a66-b679-33118878e531: status (idle) 195s DEBUG NotebookApp:handlers.py:579 Websocket closed 6f7188f6-9eff-4a66-b679-33118878e531:09f79d38-9ac4e15c042dd3af2ef92790 195s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 6f7188f6-9eff-4a66-b679-33118878e531:09f79d38-9ac4e15c042dd3af2ef92790 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6f7188f6-9eff-4a66-b679-33118878e531:iopub 195s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6f7188f6-9eff-4a66-b679-33118878e531:iopub 195s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6f7188f6-9eff-4a66-b679-33118878e531:iopub 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f7188f6-9eff-4a66-b679-33118878e531 195s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 6f7188f6-9eff-4a66-b679-33118878e531:09f79d38-9ac4e15c042dd3af2ef92790 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f7188f6-9eff-4a66-b679-33118878e531 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 6.520000ms referer=None 195s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-0eda4886-45d0-4a6c-948f-00d2d32c17f4.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49911 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39401 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0eda4886-45d0-4a6c-948f-00d2d32c17f4, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.330000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6f7188f6-9eff-4a66-b679-33118878e531 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f7188f6-9eff-4a66-b679-33118878e531 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6f7188f6-9eff-4a66-b679-33118878e531 (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0eda4886-45d0-4a6c-948f-00d2d32c17f4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0eda4886-45d0-4a6c-948f-00d2d32c17f4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "/usr/lib/python3.14/enum.py", line 1384, in 195s class FlagBoundary(StrEnum): 195s ...<10 lines>... 195s KEEP = auto() 195s File "/usr/lib/python3.14/enum.py", line 508, in __new__ 195s _gnv = staticmethod(_gnv) 195s KeyboardInterrupt 195s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 195s 195s self = 195s 195s def test_kernel_handler(self): 195s # GET kernel with given id 195s kid = self.kern_api.start().json()['id'] 195s r = self.kern_api.get(kid) 195s kern1 = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kern1, dict) 195s self.assertIn('id', kern1) 195s self.assertEqual(kern1['id'], kid) 195s 195s # Request a bad kernel id and check that a JSON 195s # message is returned! 195s bad_id = '111-111-111-111-111' 195s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 195s self.kern_api.get(bad_id) 195s 195s # DELETE kernel with id 195s > r = self.kern_api.shutdown(kid) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-e95b16b2-b3a1-48e0-b2e0-18059261f307.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40633 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49313 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: e95b16b2-b3a1-48e0-b2e0-18059261f307, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.900000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307 (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s 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 195s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 195s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.630000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e95b16b2-b3a1-48e0-b2e0-18059261f307 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e95b16b2-b3a1-48e0-b2e0-18059261f307 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307 (::1) 13.510000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.930000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0eda4886-45d0-4a6c-948f-00d2d32c17f4 (::1) 5.950000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e95b16b2-b3a1-48e0-b2e0-18059261f307 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e95b16b2-b3a1-48e0-b2e0-18059261f307 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e95b16b2-b3a1-48e0-b2e0-18059261f307 (::1) 0.620000ms 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "/usr/lib/python3.14/enum.py", line 1918, in 195s @_simple_enum(StrEnum) 195s ~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 1802, in convert_class 195s if issubclass(enum_class, Flag): 195s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 195s KeyboardInterrupt 195s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 195s 195s self = 195s 195s def test_main_kernel_handler(self): 195s # POST request 195s r = self.kern_api.start() 195s kern1 = r.json() 195s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 195s self.assertEqual(r.status_code, 201) 195s self.assertIsInstance(kern1, dict) 195s 195s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 195s expected_csp = '; '.join([ 195s "frame-ancestors 'self'", 195s 'report-uri ' + report_uri, 195s "default-src 'none'" 195s ]) 195s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 195s 195s # GET request 195s r = self.kern_api.list() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(r.json(), list) 195s self.assertEqual(r.json()[0]['id'], kern1['id']) 195s self.assertEqual(r.json()[0]['name'], kern1['name']) 195s 195s # create another kernel and check that they both are added to the 195s # list of kernels from a GET request 195s kern2 = self.kern_api.start().json() 195s assert isinstance(kern2, dict) 195s r = self.kern_api.list() 195s kernels = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kernels, list) 195s self.assertEqual(len(kernels), 2) 195s 195s # Interrupt a kernel 195s r = self.kern_api.interrupt(kern2['id']) 195s self.assertEqual(r.status_code, 204) 195s 195s # Restart a kernel 195s > r = self.kern_api.restart(kern2['id']) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 195s return self._req('POST', url_path_join(id, 'restart')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438/restart 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 924, in _load_unlocked 195s File "", line 822, in module_from_spec 195s File "", line 801, in _init_module_attrs 195s File "", line 641, in cached 195s File "", line 372, in _get_cached 195s File "", line 270, in cache_from_source 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-cbef325d-bacc-46a5-b67c-fa37742c32c4.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40915 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59999 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: cbef325d-bacc-46a5-b67c-fa37742c32c4, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.780000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8rv9a7x6/runtime/kernel-c6208102-5c8f-49a6-9c05-8cac468a1438.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43707 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45803 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6208102-5c8f-49a6-9c05-8cac468a1438, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.110000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c6208102-5c8f-49a6-9c05-8cac468a1438 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438/interrupt (::1) 4.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 195s result = coro.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 195s yield self # This tells Task to wait for completion. 195s ^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438/restart (::1) 8.730000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbef325d-bacc-46a5-b67c-fa37742c32c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbef325d-bacc-46a5-b67c-fa37742c32c4 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 195s 195s self = 195s 195s def test_no_kernels(self): 195s """Make sure there are no kernels running at the start""" 195s kernels = self.kern_api.list().json() 195s > self.assertEqual(kernels, []) 195s E AssertionError: Lists differ: [{'id': 'cbef325d-bacc-46a5-b67c-fa37742c3[281 chars]: 0}] != [] 195s E 195s E First list contains 2 additional elements. 195s E First extra element 0: 195s E {'id': 'cbef325d-bacc-46a5-b67c-fa37742c32c4', 'name': 'python3', 'last_activity': '2026-01-22T18:37:35.418454Z', 'execution_state': 'starting', 'connections': 0} 195s E 195s E + [] 195s E - [{'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': 'cbef325d-bacc-46a5-b67c-fa37742c32c4', 195s E - 'last_activity': '2026-01-22T18:37:35.418454Z', 195s E - 'name': 'python3'}, 195s E - {'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': 'c6208102-5c8f-49a6-9c05-8cac468a1438', 195s E - 'last_activity': '2026-01-22T18:37:35.440077Z', 195s E - 'name': 'python3'}] 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbef325d-bacc-46a5-b67c-fa37742c32c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbef325d-bacc-46a5-b67c-fa37742c32c4 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cbef325d-bacc-46a5-b67c-fa37742c32c4 (::1) 1.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6208102-5c8f-49a6-9c05-8cac468a1438 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6208102-5c8f-49a6-9c05-8cac468a1438 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c6208102-5c8f-49a6-9c05-8cac468a1438 (::1) 0.620000ms 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbef325d-bacc-46a5-b67c-fa37742c32c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0eda4886-45d0-4a6c-948f-00d2d32c17f4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6f7188f6-9eff-4a66-b679-33118878e531 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e95b16b2-b3a1-48e0-b2e0-18059261f307 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s __________________________ SessionAPITest.test_create __________________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpb7gnj5yu/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpb7gnj5yu/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb7gnj5yu/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb7gnj5yu/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb7gnj5yu/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb7gnj5yu/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpb7gnj5yu/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.440000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-61c64c45-246e-4067-bb32-7efeaa69b2d2.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54461 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39395 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 61c64c45-246e-4067-bb32-7efeaa69b2d2, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb7gnj5yu/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.350000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1 (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61c64c45-246e-4067-bb32-7efeaa69b2d2 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61c64c45-246e-4067-bb32-7efeaa69b2d2 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1 (::1) 7.380000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s __________________ SessionAPITest.test_create_console_session __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/295f3a66-77f6-4421-82a4-271a4223de77 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-b2fd282f-10f9-4e75-81fd-c3df3f08ba1a.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35009 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58747 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: b2fd282f-10f9-4e75-81fd-c3df3f08ba1a, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb7gnj5yu/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.730000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 61c64c45-246e-4067-bb32-7efeaa69b2d2 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 61c64c45-246e-4067-bb32-7efeaa69b2d2 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f46e552e-3bf7-47e5-95a7-d2fee0e205f1 (::1) 0.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b2fd282f-10f9-4e75-81fd-c3df3f08ba1a 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b2fd282f-10f9-4e75-81fd-c3df3f08ba1a 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/295f3a66-77f6-4421-82a4-271a4223de77 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/295f3a66-77f6-4421-82a4-271a4223de77', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 195s from pathlib._os import ( 195s ...<3 lines>... 195s ) 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s ____________________ SessionAPITest.test_create_deprecated _____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4276f95b-5182-46f8-af7d-5ae731890b1e 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-e48a2fca-c24a-40ca-8d83-0ee68f0aefb5.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44777 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48867 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: e48a2fca-c24a-40ca-8d83-0ee68f0aefb5, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb7gnj5yu/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.600000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b2fd282f-10f9-4e75-81fd-c3df3f08ba1a 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b2fd282f-10f9-4e75-81fd-c3df3f08ba1a 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/295f3a66-77f6-4421-82a4-271a4223de77 (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e48a2fca-c24a-40ca-8d83-0ee68f0aefb5 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e48a2fca-c24a-40ca-8d83-0ee68f0aefb5 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4276f95b-5182-46f8-af7d-5ae731890b1e (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4276f95b-5182-46f8-af7d-5ae731890b1e', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 315, in 195s Pattern = type(_compiler.compile('', 0)) 195s ~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 966, in parse 195s source = Tokenizer(str) 195s File "/usr/lib/python3.14/re/_parser.py", line 231, in __init__ 195s def __init__(self, string): 195s 195s KeyboardInterrupt 195s ___________________ SessionAPITest.test_create_file_session ____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d688b15c-4f22-4d0d-a9e6-09f29f46c20b 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57441 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58041 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb7gnj5yu/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e48a2fca-c24a-40ca-8d83-0ee68f0aefb5 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e48a2fca-c24a-40ca-8d83-0ee68f0aefb5 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4276f95b-5182-46f8-af7d-5ae731890b1e (::1) 0.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d688b15c-4f22-4d0d-a9e6-09f29f46c20b (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d688b15c-4f22-4d0d-a9e6-09f29f46c20b', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 381, in 195s import copyreg 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 851, in get_code 195s File "", line 950, in get_data 195s KeyboardInterrupt 195s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 195s 195s self = 195s 195s def test_create_with_kernel_id(self): 195s # create a new kernel 195s r = self.request('POST', 'api/kernels') 195s r.raise_for_status() 195s kernel = r.json() 195s 195s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 195s self.assertEqual(resp.status_code, 201) 195s newsession = resp.json() 195s self.assertIn('id', newsession) 195s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 195s self.assertEqual(newsession['kernel']['id'], kernel['id']) 195s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 195s 195s sessions = self.sess_api.list().json() 195s > self.assertEqual(sessions, [newsession]) 195s E AssertionError: Lists differ: [{'id': 'd688b15c-4f22-4d0d-a9e6-09f29f46c20b', 'p[553 chars]ne}}] != [{'id': '80c00e58-27c9-4563-a3c1-36e6e6852ee4', 'p[279 chars]ne}}] 195s E 195s E First differing element 0: 195s E {'id': 'd688b15c-4f22-4d0d-a9e6-09f29f46c20b', 'p[218 chars]: 0}} 195s E {'id': '80c00e58-27c9-4563-a3c1-36e6e6852ee4', 'p[278 chars]one}} 195s E 195s E First list contains 1 additional elements. 195s E First extra element 1: 195s E {'id': '80c00e58-27c9-4563-a3c1-36e6e6852ee4', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '192ecc70-e113-4913-9465-87b6a8412b22', 'name': 'python3', 'last_activity': '2026-01-22T18:37:35.891277Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 195s E 195s E Diff is 830 characters long. Set self.maxDiff to None to see it. 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-192ecc70-e113-4913-9465-87b6a8412b22.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49085 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59931 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 192ecc70-e113-4913-9465-87b6a8412b22, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.830000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f74e3d9a-d87e-42ac-a3c5-7f6ecc3fd916 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d688b15c-4f22-4d0d-a9e6-09f29f46c20b (::1) 1.900000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 192ecc70-e113-4913-9465-87b6a8412b22 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 192ecc70-e113-4913-9465-87b6a8412b22 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 7.110000ms referer=None 195s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ---------------------------- Captured stderr setup ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 195s import json 195s File "/usr/lib/python3.14/json/__init__.py", line 106, in 195s from .decoder import JSONDecoder, JSONDecodeError 195s File "/usr/lib/python3.14/json/decoder.py", line 5, in 195s from json import scanner 195s File "/usr/lib/python3.14/json/scanner.py", line 11, in 195s NUMBER_RE = re.compile( 195s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 195s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 195s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 861, in _parse 195s state.closegroup(group, p) 195s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 99, in closegroup 195s self.groupwidths[gid] = p.getwidth() 195s ~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 188, in getwidth 195s l, h = av.getwidth() 195s ~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 178, in getwidth 195s def getwidth(self): 195s 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-b9a292af-a89a-4043-989d-51c1b3706e27.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45519 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41117 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: b9a292af-a89a-4043-989d-51c1b3706e27, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.150000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 192ecc70-e113-4913-9465-87b6a8412b22 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 192ecc70-e113-4913-9465-87b6a8412b22 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 2.200000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9a292af-a89a-4043-989d-51c1b3706e27 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9a292af-a89a-4043-989d-51c1b3706e27 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 195s from pathlib._os import ( 195s ...<3 lines>... 195s ) 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb7gnj5yu/runtime/kernel-278fe6ef-046a-47de-a857-1a78b7832d5c.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52285 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49279 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 278fe6ef-046a-47de-a857-1a78b7832d5c, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpb7gnj5yu/notebooks/foo'} 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9a292af-a89a-4043-989d-51c1b3706e27 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9a292af-a89a-4043-989d-51c1b3706e27 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 16.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 278fe6ef-046a-47de-a857-1a78b7832d5c 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 278fe6ef-046a-47de-a857-1a78b7832d5c 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/80c00e58-27c9-4563-a3c1-36e6e6852ee4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 6, in 195s import fnmatch 195s File "/usr/lib/python3.14/fnmatch.py", line 105, in 195s _re_setops_sub = re.compile(r'([&~|])').sub 195s ~~~~~~~~~~^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 195s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 195s p = _parse_sub(source, state, sub_verbose, nested + 1) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 637, in _parse 195s subpatternappend((IN, set)) 195s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 177, in append 195s self.data.append(code) 195s ~~~~~~~~~~~~~~~~^^^^^^ 195s KeyboardInterrupt 195s _______________________ AsyncSessionAPITest.test_create ________________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e07fa762-5b50-438f-8c6e-58a78aca2ea9 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpmyrkualc/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpmyrkualc/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmyrkualc/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmyrkualc/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmyrkualc/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmyrkualc/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpmyrkualc/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.450000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-0c505631-3a17-41ac-92e6-9c925cc1fad8.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41229 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42965 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c505631-3a17-41ac-92e6-9c925cc1fad8, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmyrkualc/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.690000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/e07fa762-5b50-438f-8c6e-58a78aca2ea9 (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c505631-3a17-41ac-92e6-9c925cc1fad8 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c505631-3a17-41ac-92e6-9c925cc1fad8 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e07fa762-5b50-438f-8c6e-58a78aca2ea9 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e07fa762-5b50-438f-8c6e-58a78aca2ea9', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 514, in 195s from nt import _getfullpathname 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 987, in find_spec 195s KeyboardInterrupt 195s _______________ AsyncSessionAPITest.test_create_console_session ________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f21d64be-2925-4c62-86be-20036d844158 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-a647563b-3d39-4c9f-ba9e-31fc7dabab07.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47553 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38085 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: a647563b-3d39-4c9f-ba9e-31fc7dabab07, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmyrkualc/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.880000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.900000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c505631-3a17-41ac-92e6-9c925cc1fad8 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c505631-3a17-41ac-92e6-9c925cc1fad8 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e07fa762-5b50-438f-8c6e-58a78aca2ea9 (::1) 1.830000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a647563b-3d39-4c9f-ba9e-31fc7dabab07 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a647563b-3d39-4c9f-ba9e-31fc7dabab07 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f21d64be-2925-4c62-86be-20036d844158 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f21d64be-2925-4c62-86be-20036d844158', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 126, in 195s from . import _compiler, _parser 195s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 195s from ._casefix import _EXTRA_CASES 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c5e8b7ab-8407-4de6-9bfa-2134423b6586 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-33c254e2-615a-48f6-aac0-b7eac2295e26.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38727 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50177 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 33c254e2-615a-48f6-aac0-b7eac2295e26, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmyrkualc/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.270000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a647563b-3d39-4c9f-ba9e-31fc7dabab07 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a647563b-3d39-4c9f-ba9e-31fc7dabab07 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f21d64be-2925-4c62-86be-20036d844158 (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 33c254e2-615a-48f6-aac0-b7eac2295e26 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 33c254e2-615a-48f6-aac0-b7eac2295e26 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c5e8b7ab-8407-4de6-9bfa-2134423b6586 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c5e8b7ab-8407-4de6-9bfa-2134423b6586', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c5e8b7ab-8407-4de6-9bfa-2134423b6586 (::1) 6.790000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 237, in 195s magic_check_bytes = re.compile(b'([*?[])') 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 195s code = _code(p, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 195s _compile_info(code, p, flags) 195s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_compiler.py", line 544, in _compile_info 195s charset = _get_charset_prefix(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 481, in _get_charset_prefix 195s def _get_charset_prefix(pattern, flags): 195s 195s KeyboardInterrupt 195s _________________ AsyncSessionAPITest.test_create_file_session _________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-4dbbb3b2-8f69-45cf-bbb3-05cc345bca52.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40955 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44959 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmyrkualc/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.890000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 33c254e2-615a-48f6-aac0-b7eac2295e26 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 33c254e2-615a-48f6-aac0-b7eac2295e26 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c5e8b7ab-8407-4de6-9bfa-2134423b6586 (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d (::1) 10.840000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1397, in find_spec 195s KeyboardInterrupt 195s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 195s 195s self = 195s 195s def test_create_with_kernel_id(self): 195s # create a new kernel 195s r = self.request('POST', 'api/kernels') 195s r.raise_for_status() 195s kernel = r.json() 195s 195s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 195s self.assertEqual(resp.status_code, 201) 195s newsession = resp.json() 195s self.assertIn('id', newsession) 195s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 195s self.assertEqual(newsession['kernel']['id'], kernel['id']) 195s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 195s 195s sessions = self.sess_api.list().json() 195s > self.assertEqual(sessions, [newsession]) 195s E AssertionError: Lists differ: [{'id': '0c79bedf-b62e-4a7b-911b-f87c7b685d5d', 'p[553 chars]ne}}] != [{'id': 'c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', 'p[279 chars]ne}}] 195s E 195s E First differing element 0: 195s E {'id': '0c79bedf-b62e-4a7b-911b-f87c7b685d5d', 'p[218 chars]: 0}} 195s E {'id': 'c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', 'p[278 chars]one}} 195s E 195s E First list contains 1 additional elements. 195s E First extra element 1: 195s E {'id': 'c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '0b4f0550-136d-46a5-b668-c345d38a525f', 'name': 'python3', 'last_activity': '2026-01-22T18:37:36.477930Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 195s E 195s E Diff is 830 characters long. Set self.maxDiff to None to see it. 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-0b4f0550-136d-46a5-b668-c345d38a525f.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58487 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49037 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b4f0550-136d-46a5-b668-c345d38a525f, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.230000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dbbb3b2-8f69-45cf-bbb3-05cc345bca52 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0c79bedf-b62e-4a7b-911b-f87c7b685d5d (::1) 1.840000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b4f0550-136d-46a5-b668-c345d38a525f 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b4f0550-136d-46a5-b668-c345d38a525f 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ---------------------------- Captured stderr setup ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 195s import json 195s File "/usr/lib/python3.14/json/__init__.py", line 106, in 195s from .decoder import JSONDecoder, JSONDecodeError 195s File "/usr/lib/python3.14/json/decoder.py", line 54, in 195s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 195s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 195s p = _parse_sub(source, state, sub_verbose, nested + 1) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 879, in _parse 195s op, av = subpattern[i] 195s ~~~~~~~~~~^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 168, in __getitem__ 195s def __getitem__(self, index): 195s 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-7ccfe14d-561c-4131-b5b3-52629fab36e7.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43181 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59911 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ccfe14d-561c-4131-b5b3-52629fab36e7, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b4f0550-136d-46a5-b668-c345d38a525f 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b4f0550-136d-46a5-b668-c345d38a525f 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 1.030000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ccfe14d-561c-4131-b5b3-52629fab36e7 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ccfe14d-561c-4131-b5b3-52629fab36e7 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 170, in 195s from nt import _path_splitroot_ex as splitroot 195s File "", line 1368, in _find_and_load 195s File "", line 421, in __enter__ 195s File "", line 311, in acquire 195s File "", line 170, in __enter__ 195s File "", line 132, in setdefault 195s File "", line 74, in __new__ 195s KeyboardInterrupt 195s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmyrkualc/runtime/kernel-1ca85e24-0641-43ae-8f4b-38f32134141f.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39935 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44377 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1ca85e24-0641-43ae-8f4b-38f32134141f, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpmyrkualc/notebooks/foo'} 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ccfe14d-561c-4131-b5b3-52629fab36e7 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ccfe14d-561c-4131-b5b3-52629fab36e7 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 15.210000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.660000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ca85e24-0641-43ae-8f4b-38f32134141f 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ca85e24-0641-43ae-8f4b-38f32134141f 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c06c0c2d-45d3-4d28-b7af-03b6a0d42b0c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 126, in 195s from . import _compiler, _parser 195s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 195s from . import _parser 195s File "/usr/lib/python3.14/re/_parser.py", line 15, in 195s from ._constants import * 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1399, in find_spec 195s File "", line 1352, in _get_spec 195s KeyboardInterrupt 195s =============================== warnings summary =============================== 195s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 195s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 195s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 195s return LooseVersion(v) >= LooseVersion(check) 195s 195s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 195s services/kernels/tests/test_kernels_api.py: 72 warnings 195s services/sessions/tests/test_sessions_api.py: 96 warnings 195s /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). 195s dt = unaware(*args, **kwargs) 195s 195s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 195s /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 195s pytestmark = pytest.mark.integration_tests 195s 195s services/kernels/tests/test_kernels_api.py: 6 warnings 195s services/sessions/tests/test_sessions_api.py: 6 warnings 195s /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 195s policy = events.get_event_loop_policy() 195s 195s services/kernels/tests/test_kernels_api.py: 24 warnings 195s services/sessions/tests/test_sessions_api.py: 19 warnings 195s /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 195s loop = events.get_event_loop_policy().get_event_loop() 195s 195s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 195s loop.make_current() 195s 195s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 195s /usr/lib/python3.14/selectors.py:452: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 195s fd_event_list = self._selector.poll(timeout, max_ev) 195s Enable tracemalloc to get traceback where the object was allocated. 195s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 195s 195s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 195s =========================== short test summary info ============================ 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 195s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 195s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 195s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 195s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 195s ===== 23 failed, 2 passed, 305 deselected, 229 warnings, 4 errors in 6.57s ===== 195s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 195s *** 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 195s ============================= test session starts ============================== 195s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 195s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 195s plugins: typeguard-4.4.4 195s collected 330 items / 307 deselected / 23 selected 195s run-last-failure: rerun previous 23 failures 195s 195s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 195s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 195s 195s ==================================== ERRORS ==================================== 195s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 851, in get_code 195s File "", line 950, in get_data 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-ceb92fcb-26a8-4665-930d-9457f30cdb68.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48951 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50449 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: ceb92fcb-26a8-4665-930d-9457f30cdb68, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-f3e605a9-e122-4ef0-979f-826e9d432fa8.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47813 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46919 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: f3e605a9-e122-4ef0-979f-826e9d432fa8, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.270000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f3e605a9-e122-4ef0-979f-826e9d432fa8 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8/interrupt (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8/restart (::1) 9.210000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ceb92fcb-26a8-4665-930d-9457f30cdb68 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ceb92fcb-26a8-4665-930d-9457f30cdb68 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 195s import jupyter_client 195s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 195s from .asynchronous import AsyncKernelClient 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 195s from .client import AsyncKernelClient # noqa 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 195s import zmq.asyncio 195s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 195s import asyncio 195s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 195s from .base_events import * 195s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 195s import concurrent.futures 195s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 195s from concurrent.futures._base import (FIRST_COMPLETED, 195s ...<9 lines>... 195s as_completed) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 195s import logging 195s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 195s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 195s File "/usr/lib/python3.14/traceback.py", line 12, in 195s import _colorize 195s File "/usr/lib/python3.14/_colorize.py", line 157, in 195s @dataclass(frozen=True, kw_only=True) 195s ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 195s return _process_class(cls, init, repr, eq, order, unsafe_hash, 195s frozen, match_args, kw_only, slots, 195s weakref_slot) 195s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 195s func_builder.add_fns_to_class(cls) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 195s exec(txt, self.globals, ns) 195s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 195s File "", line 0, in 195s KeyboardInterrupt 195s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 195s import jupyter_client 195s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 195s from .asynchronous import AsyncKernelClient 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 195s from .client import AsyncKernelClient # noqa 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 195s import zmq.asyncio 195s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 195s import asyncio 195s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 195s from .base_events import * 195s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 195s import concurrent.futures 195s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 195s from concurrent.futures._base import (FIRST_COMPLETED, 195s ...<9 lines>... 195s as_completed) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 195s import logging 195s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 195s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 195s File "/usr/lib/python3.14/traceback.py", line 12, in 195s import _colorize 195s File "/usr/lib/python3.14/_colorize.py", line 174, in 195s @dataclass(frozen=True) 195s ~~~~~~~~~^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 195s return _process_class(cls, init, repr, eq, order, unsafe_hash, 195s frozen, match_args, kw_only, slots, 195s weakref_slot) 195s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 195s func_builder.add_fns_to_class(cls) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 195s exec(txt, self.globals, ns) 195s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 195s File "", line 0, in 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-22864eec-c02a-429a-85b7-62cee7330219.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52971 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41795 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 22864eec-c02a-429a-85b7-62cee7330219, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.300000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-c2477392-b06b-47cb-afa3-378b787ddc42.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59153 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48387 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: c2477392-b06b-47cb-afa3-378b787ddc42, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c2477392-b06b-47cb-afa3-378b787ddc42 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42/interrupt (::1) 1.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 195s result = coro.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 195s yield self # This tells Task to wait for completion. 195s ^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42/restart (::1) 7.280000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22864eec-c02a-429a-85b7-62cee7330219 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22864eec-c02a-429a-85b7-62cee7330219 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 (::1) 14.210000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 3, in 195s import contextlib 195s File "/usr/lib/python3.14/contextlib.py", line 6, in 195s from collections import deque 195s File "/usr/lib/python3.14/collections/__init__.py", line 41, in 195s from reprlib import recursive_repr as _recursive_repr 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-34e5b539-69a7-4f6c-8663-235c9487ba1d.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41665 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42233 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 34e5b539-69a7-4f6c-8663-235c9487ba1d, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e (::1) 0.930000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 7.940000ms referer=None 195s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-0e1839dd-04be-4472-b1c1-ae54d96cc11d.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43675 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54597 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0e1839dd-04be-4472-b1c1-ae54d96cc11d, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.340000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89601b6d-25b8-4cdd-b84b-01b899752a46 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89601b6d-25b8-4cdd-b84b-01b899752a46 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c (::1) 1.970000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 8.640000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 195s from subprocess import PIPE, Popen 195s File "/usr/lib/python3.14/subprocess.py", line 52, in 195s import warnings 195s File "/usr/lib/python3.14/warnings.py", line 15, in 195s from _py_warnings import ( 195s ...<44 lines>... 195s ) 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 888, in get_code 195s File "", line 511, in _compile_bytecode 195s KeyboardInterrupt 195s =================================== FAILURES =================================== 195s ______________________ KernelAPITest.test_default_kernel _______________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9fc18b36-ee2a-4546-9d77-77bb78ad19d0 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpv6gy_ldw/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpv6gy_ldw/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv6gy_ldw/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpv6gy_ldw/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv6gy_ldw/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpv6gy_ldw/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpv6gy_ldw/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.680000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-9fc18b36-ee2a-4546-9d77-77bb78ad19d0.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49257 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50255 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9fc18b36-ee2a-4546-9d77-77bb78ad19d0, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 57.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.810000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9fc18b36-ee2a-4546-9d77-77bb78ad19d0 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9fc18b36-ee2a-4546-9d77-77bb78ad19d0 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9fc18b36-ee2a-4546-9d77-77bb78ad19d0 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9fc18b36-ee2a-4546-9d77-77bb78ad19d0', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 236, in 195s magic_check = re.compile('([*?[])') 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 757, in compile 195s def compile(p, flags=0): 195s 195s KeyboardInterrupt 195s ______________________ KernelAPITest.test_kernel_handler _______________________ 195s 195s self = 195s 195s def test_kernel_handler(self): 195s # GET kernel with given id 195s kid = self.kern_api.start().json()['id'] 195s r = self.kern_api.get(kid) 195s kern1 = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kern1, dict) 195s self.assertIn('id', kern1) 195s self.assertEqual(kern1['id'], kid) 195s 195s # Request a bad kernel id and check that a JSON 195s # message is returned! 195s bad_id = '111-111-111-111-111' 195s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 195s self.kern_api.get(bad_id) 195s 195s # DELETE kernel with id 195s > r = self.kern_api.shutdown(kid) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56519 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59797 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.480000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 (::1) 0.510000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s 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 195s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 195s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.570000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 (::1) 10.660000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9fc18b36-ee2a-4546-9d77-77bb78ad19d0 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9fc18b36-ee2a-4546-9d77-77bb78ad19d0 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9fc18b36-ee2a-4546-9d77-77bb78ad19d0 (::1) 1.900000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3b9a1d1a-ad6a-49cd-834d-ced7ef0422c4 (::1) 0.720000ms 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 514, in 195s from nt import _getfullpathname 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1365, in find_spec 195s File "", line 152, in _path_stat 195s KeyboardInterrupt 195s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 195s 195s self = 195s 195s def test_main_kernel_handler(self): 195s # POST request 195s r = self.kern_api.start() 195s kern1 = r.json() 195s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 195s self.assertEqual(r.status_code, 201) 195s self.assertIsInstance(kern1, dict) 195s 195s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 195s expected_csp = '; '.join([ 195s "frame-ancestors 'self'", 195s 'report-uri ' + report_uri, 195s "default-src 'none'" 195s ]) 195s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 195s 195s # GET request 195s r = self.kern_api.list() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(r.json(), list) 195s self.assertEqual(r.json()[0]['id'], kern1['id']) 195s self.assertEqual(r.json()[0]['name'], kern1['name']) 195s 195s # create another kernel and check that they both are added to the 195s # list of kernels from a GET request 195s kern2 = self.kern_api.start().json() 195s assert isinstance(kern2, dict) 195s r = self.kern_api.list() 195s kernels = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kernels, list) 195s self.assertEqual(len(kernels), 2) 195s 195s # Interrupt a kernel 195s r = self.kern_api.interrupt(kern2['id']) 195s self.assertEqual(r.status_code, 204) 195s 195s # Restart a kernel 195s > r = self.kern_api.restart(kern2['id']) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 195s return self._req('POST', url_path_join(id, 'restart')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8/restart 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 851, in get_code 195s File "", line 950, in get_data 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-ceb92fcb-26a8-4665-930d-9457f30cdb68.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48951 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50449 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: ceb92fcb-26a8-4665-930d-9457f30cdb68, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpv6gy_ldw/runtime/kernel-f3e605a9-e122-4ef0-979f-826e9d432fa8.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47813 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46919 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: f3e605a9-e122-4ef0-979f-826e9d432fa8, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.270000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f3e605a9-e122-4ef0-979f-826e9d432fa8 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8/interrupt (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8/restart (::1) 9.210000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ceb92fcb-26a8-4665-930d-9457f30cdb68 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ceb92fcb-26a8-4665-930d-9457f30cdb68 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 195s yielded = ctx_run(next, result) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ________________________ KernelAPITest.test_no_kernels _________________________ 195s 195s self = 195s 195s def test_no_kernels(self): 195s """Make sure there are no kernels running at the start""" 195s kernels = self.kern_api.list().json() 195s > self.assertEqual(kernels, []) 195s E AssertionError: Lists differ: [{'id': 'ceb92fcb-26a8-4665-930d-9457f30cd[281 chars]: 0}] != [] 195s E 195s E First list contains 2 additional elements. 195s E First extra element 0: 195s E {'id': 'ceb92fcb-26a8-4665-930d-9457f30cdb68', 'name': 'python3', 'last_activity': '2026-01-22T18:37:41.757031Z', 'execution_state': 'starting', 'connections': 0} 195s E 195s E + [] 195s E - [{'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': 'ceb92fcb-26a8-4665-930d-9457f30cdb68', 195s E - 'last_activity': '2026-01-22T18:37:41.757031Z', 195s E - 'name': 'python3'}, 195s E - {'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': 'f3e605a9-e122-4ef0-979f-826e9d432fa8', 195s E - 'last_activity': '2026-01-22T18:37:41.781390Z', 195s E - 'name': 'python3'}] 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ceb92fcb-26a8-4665-930d-9457f30cdb68 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ceb92fcb-26a8-4665-930d-9457f30cdb68 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ceb92fcb-26a8-4665-930d-9457f30cdb68 (::1) 0.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3e605a9-e122-4ef0-979f-826e9d432fa8 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3e605a9-e122-4ef0-979f-826e9d432fa8 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f3e605a9-e122-4ef0-979f-826e9d432fa8 (::1) 0.740000ms 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s _____________________ AsyncKernelAPITest.test_connections ______________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwoktu9y3/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwoktu9y3/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwoktu9y3/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwoktu9y3/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwoktu9y3/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwoktu9y3/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwoktu9y3/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.430000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-46e6ce15-4435-46de-ae0e-f0921c9ef2cc.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45985 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38971 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 46e6ce15-4435-46de-ae0e-f0921c9ef2cc, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.270000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 0.530000ms 195s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc/channels 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 195s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54741 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 46e6ce15-4435-46de-ae0e-f0921c9ef2cc: status (starting) 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 46e6ce15-4435-46de-ae0e-f0921c9ef2cc: status (busy) 195s 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/'}]} 195s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 46e6ce15-4435-46de-ae0e-f0921c9ef2cc) to 5.4 (client). 195s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc/channels (::1) 641.580000ms 195s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc/channels 195s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38971 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54741 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45985 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55121 195s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 195s Setting websocket_ping_timeout=30000 195s DEBUG NotebookApp:kernelmanager.py:423 activity on 46e6ce15-4435-46de-ae0e-f0921c9ef2cc: status (idle) 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 0.560000ms 195s DEBUG NotebookApp:handlers.py:579 Websocket closed 46e6ce15-4435-46de-ae0e-f0921c9ef2cc:8638c7e1-bb5cee239b8626814ecad0e2 195s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 46e6ce15-4435-46de-ae0e-f0921c9ef2cc:8638c7e1-bb5cee239b8626814ecad0e2 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 6.610000ms referer=None 195s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 195s 195s self = 195s 195s def tearDown(self): 195s for k in self.kern_api.list().json(): 195s > self.kern_api.shutdown(k['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-2c0b6f1a-0ac6-4db4-8954-e237fd52fa76.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58271 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60133 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/46e6ce15-4435-46de-ae0e-f0921c9ef2cc (::1) 0.650000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2c0b6f1a-0ac6-4db4-8954-e237fd52fa76', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 (::1) 6.450000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 195s from subprocess import PIPE, Popen 195s File "/usr/lib/python3.14/subprocess.py", line 125, in 195s import selectors 195s File "/usr/lib/python3.14/selectors.py", line 46, in 195s SelectorKey = namedtuple('SelectorKey', ['fileobj', 'fd', 'events', 'data']) 195s File "/usr/lib/python3.14/collections/__init__.py", line 447, in namedtuple 195s __new__ = eval(code, namespace) 195s File "", line 0, in 195s KeyboardInterrupt 195s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 195s 195s self = 195s 195s def test_kernel_handler(self): 195s # GET kernel with given id 195s kid = self.kern_api.start().json()['id'] 195s r = self.kern_api.get(kid) 195s kern1 = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kern1, dict) 195s self.assertIn('id', kern1) 195s self.assertEqual(kern1['id'], kid) 195s 195s # Request a bad kernel id and check that a JSON 195s # message is returned! 195s bad_id = '111-111-111-111-111' 195s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 195s self.kern_api.get(bad_id) 195s 195s # DELETE kernel with id 195s > r = self.kern_api.shutdown(kid) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-7c3c8209-8944-428f-9b1e-e3c5e12e8693.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46075 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36853 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c3c8209-8944-428f-9b1e-e3c5e12e8693, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.850000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693 (::1) 0.580000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s 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 195s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 195s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.610000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693 (::1) 6.210000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7c3c8209-8944-428f-9b1e-e3c5e12e8693 (::1) 0.540000ms 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 849, in 195s from nt import _path_isdir as isdir 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1261, in _find_spec 195s KeyboardInterrupt 195s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 195s 195s self = 195s 195s def test_main_kernel_handler(self): 195s # POST request 195s r = self.kern_api.start() 195s kern1 = r.json() 195s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 195s self.assertEqual(r.status_code, 201) 195s self.assertIsInstance(kern1, dict) 195s 195s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 195s expected_csp = '; '.join([ 195s "frame-ancestors 'self'", 195s 'report-uri ' + report_uri, 195s "default-src 'none'" 195s ]) 195s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 195s 195s # GET request 195s r = self.kern_api.list() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(r.json(), list) 195s self.assertEqual(r.json()[0]['id'], kern1['id']) 195s self.assertEqual(r.json()[0]['name'], kern1['name']) 195s 195s # create another kernel and check that they both are added to the 195s # list of kernels from a GET request 195s kern2 = self.kern_api.start().json() 195s assert isinstance(kern2, dict) 195s r = self.kern_api.list() 195s kernels = r.json() 195s self.assertEqual(r.status_code, 200) 195s assert isinstance(kernels, list) 195s self.assertEqual(len(kernels), 2) 195s 195s # Interrupt a kernel 195s r = self.kern_api.interrupt(kern2['id']) 195s self.assertEqual(r.status_code, 204) 195s 195s # Restart a kernel 195s > r = self.kern_api.restart(kern2['id']) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 195s return self._req('POST', url_path_join(id, 'restart')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42/restart 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ----------------------------- Captured stderr call ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 195s import jupyter_client 195s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 195s from .asynchronous import AsyncKernelClient 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 195s from .client import AsyncKernelClient # noqa 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 195s import zmq.asyncio 195s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 195s import asyncio 195s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 195s from .base_events import * 195s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 195s import concurrent.futures 195s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 195s from concurrent.futures._base import (FIRST_COMPLETED, 195s ...<9 lines>... 195s as_completed) 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 195s import logging 195s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 195s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 195s File "/usr/lib/python3.14/traceback.py", line 12, in 195s import _colorize 195s File "/usr/lib/python3.14/_colorize.py", line 174, in 195s @dataclass(frozen=True) 195s ~~~~~~~~~^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 195s return _process_class(cls, init, repr, eq, order, unsafe_hash, 195s frozen, match_args, kw_only, slots, 195s weakref_slot) 195s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 195s func_builder.add_fns_to_class(cls) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 195s File "/usr/lib/python3.14/dataclasses.py", line 506, in add_fns_to_class 195s exec(txt, self.globals, ns) 195s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 195s File "", line 0, in 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-22864eec-c02a-429a-85b7-62cee7330219.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52971 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41795 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 22864eec-c02a-429a-85b7-62cee7330219, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.300000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwoktu9y3/runtime/kernel-c2477392-b06b-47cb-afa3-378b787ddc42.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59153 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48387 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: c2477392-b06b-47cb-afa3-378b787ddc42, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.770000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c2477392-b06b-47cb-afa3-378b787ddc42 195s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42/interrupt (::1) 1.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 195s yield maybe_future(km.restart_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 195s result = coro.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 195s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 195s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 195s yield self # This tells Task to wait for completion. 195s ^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 195s await ensure_async(kernel.restart_kernel(now=now)) 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 195s await self._async_shutdown_kernel(now=now, restart=True) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42/restart (::1) 7.280000ms referer=None 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22864eec-c02a-429a-85b7-62cee7330219 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22864eec-c02a-429a-85b7-62cee7330219 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 195s yield maybe_future(km.shutdown_kernel(kernel_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 (::1) 14.210000ms referer=None 195s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 195s 195s self = 195s 195s def test_no_kernels(self): 195s """Make sure there are no kernels running at the start""" 195s kernels = self.kern_api.list().json() 195s > self.assertEqual(kernels, []) 195s E AssertionError: Lists differ: [{'id': '22864eec-c02a-429a-85b7-62cee7330[281 chars]: 0}] != [] 195s E 195s E First list contains 2 additional elements. 195s E First extra element 0: 195s E {'id': '22864eec-c02a-429a-85b7-62cee7330219', 'name': 'python3', 'last_activity': '2026-01-22T18:37:42.812042Z', 'execution_state': 'starting', 'connections': 0} 195s E 195s E + [] 195s E - [{'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': '22864eec-c02a-429a-85b7-62cee7330219', 195s E - 'last_activity': '2026-01-22T18:37:42.812042Z', 195s E - 'name': 'python3'}, 195s E - {'connections': 0, 195s E - 'execution_state': 'starting', 195s E - 'id': 'c2477392-b06b-47cb-afa3-378b787ddc42', 195s E - 'last_activity': '2026-01-22T18:37:42.832929Z', 195s E - 'name': 'python3'}] 195s 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 22864eec-c02a-429a-85b7-62cee7330219 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22864eec-c02a-429a-85b7-62cee7330219 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/22864eec-c02a-429a-85b7-62cee7330219 (::1) 0.590000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c2477392-b06b-47cb-afa3-378b787ddc42 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c2477392-b06b-47cb-afa3-378b787ddc42 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c2477392-b06b-47cb-afa3-378b787ddc42 (::1) 0.660000ms 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46e6ce15-4435-46de-ae0e-f0921c9ef2cc 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2c0b6f1a-0ac6-4db4-8954-e237fd52fa76 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 22864eec-c02a-429a-85b7-62cee7330219 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c3c8209-8944-428f-9b1e-e3c5e12e8693 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s __________________________ SessionAPITest.test_create __________________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwag49_1_/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwag49_1_/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwag49_1_/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwag49_1_/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwag49_1_/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwag49_1_/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwag49_1_/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-6c6fb005-5fb0-4d16-b383-0a137e9e1f47.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52903 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44969 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6c6fb005-5fb0-4d16-b383-0a137e9e1f47, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwag49_1_/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.660000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2 (::1) 0.570000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c6fb005-5fb0-4d16-b383-0a137e9e1f47 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c6fb005-5fb0-4d16-b383-0a137e9e1f47 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2 (::1) 8.680000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 195s import json 195s File "/usr/lib/python3.14/json/__init__.py", line 106, in 195s from .decoder import JSONDecoder, JSONDecodeError 195s File "/usr/lib/python3.14/json/decoder.py", line 5, in 195s from json import scanner 195s File "/usr/lib/python3.14/json/scanner.py", line 11, in 195s NUMBER_RE = re.compile( 195s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 195s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 195s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 195s return _compile(pattern, flags) 195s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 195s p = _compiler.compile(pattern, flags) 195s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 195s p = _parser.parse(p, flags) 195s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 195s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 195s p = _parse_sub(source, state, sub_verbose, nested + 1) 195s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 195s itemsappend(_parse(source, state, verbose, nested + 1, 195s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s not nested and not items)) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/re/_parser.py", line 544, in _parse 195s code = _escape(source, this, state) 195s File "/usr/lib/python3.14/re/_parser.py", line 444, in _escape 195s return LITERAL, ord(escape[1]) 195s ~~~^^^^^^^^^^^ 195s KeyboardInterrupt 195s __________________ SessionAPITest.test_create_console_session __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bb7b3c63-e3e8-46d4-b84d-ec19aeb129cb 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-0f12aac8-1204-4b06-8502-e55098306ad8.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50267 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58923 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0f12aac8-1204-4b06-8502-e55098306ad8, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwag49_1_/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.160000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c6fb005-5fb0-4d16-b383-0a137e9e1f47 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c6fb005-5fb0-4d16-b383-0a137e9e1f47 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7df1b6a8-2840-4f1b-88ad-0e51e34bd2b2 (::1) 0.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f12aac8-1204-4b06-8502-e55098306ad8 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f12aac8-1204-4b06-8502-e55098306ad8 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb7b3c63-e3e8-46d4-b84d-ec19aeb129cb (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb7b3c63-e3e8-46d4-b84d-ec19aeb129cb', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 125, in 195s import enum 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 949, in _load_unlocked 195s KeyboardInterrupt 195s ____________________ SessionAPITest.test_create_deprecated _____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c56ccb86-3682-497c-a85f-da0ca8ae4853 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-d1e221d7-3922-4aa2-b0af-54feef36c977.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57605 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55655 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: d1e221d7-3922-4aa2-b0af-54feef36c977, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwag49_1_/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.870000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.820000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f12aac8-1204-4b06-8502-e55098306ad8 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f12aac8-1204-4b06-8502-e55098306ad8 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bb7b3c63-e3e8-46d4-b84d-ec19aeb129cb (::1) 0.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1e221d7-3922-4aa2-b0af-54feef36c977 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1e221d7-3922-4aa2-b0af-54feef36c977 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c56ccb86-3682-497c-a85f-da0ca8ae4853 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c56ccb86-3682-497c-a85f-da0ca8ae4853', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 195s from glob import _StringGlobber, _no_recurse_symlinks 195s File "/usr/lib/python3.14/glob.py", line 5, in 195s import re 195s File "/usr/lib/python3.14/re/__init__.py", line 126, in 195s from . import _compiler, _parser 195s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 195s from ._casefix import _EXTRA_CASES 195s File "", line 1371, in _find_and_load 195s File "", line 1342, in _find_and_load_unlocked 195s File "", line 938, in _load_unlocked 195s File "", line 755, in exec_module 195s File "", line 840, in get_code 195s File "", line 265, in cache_from_source 195s File "", line 139, in _path_split 195s File "", line 139, in 195s KeyboardInterrupt 195s ___________________ SessionAPITest.test_create_file_session ____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-7af258b2-b7f4-4b32-8bd7-061c9133a36d.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54069 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35559 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7af258b2-b7f4-4b32-8bd7-061c9133a36d, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwag49_1_/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d1e221d7-3922-4aa2-b0af-54feef36c977 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d1e221d7-3922-4aa2-b0af-54feef36c977 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c56ccb86-3682-497c-a85f-da0ca8ae4853 (::1) 0.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e (::1) 7.060000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1393, in find_spec 195s File "", line 131, in _path_join 195s KeyboardInterrupt 195s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 195s 195s self = 195s 195s def test_create_with_kernel_id(self): 195s # create a new kernel 195s r = self.request('POST', 'api/kernels') 195s r.raise_for_status() 195s kernel = r.json() 195s 195s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 195s self.assertEqual(resp.status_code, 201) 195s newsession = resp.json() 195s self.assertIn('id', newsession) 195s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 195s self.assertEqual(newsession['kernel']['id'], kernel['id']) 195s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 195s 195s sessions = self.sess_api.list().json() 195s > self.assertEqual(sessions, [newsession]) 195s E AssertionError: Lists differ: [{'id': 'c22e184c-1a9f-4132-ae36-24814a28c11e', 'p[553 chars]ne}}] != [{'id': '840ab5ad-b709-47e4-9943-ef61005d2cb2', 'p[279 chars]ne}}] 195s E 195s E First differing element 0: 195s E {'id': 'c22e184c-1a9f-4132-ae36-24814a28c11e', 'p[218 chars]: 0}} 195s E {'id': '840ab5ad-b709-47e4-9943-ef61005d2cb2', 'p[278 chars]one}} 195s E 195s E First list contains 1 additional elements. 195s E First extra element 1: 195s E {'id': '840ab5ad-b709-47e4-9943-ef61005d2cb2', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '34e5b539-69a7-4f6c-8663-235c9487ba1d', 'name': 'python3', 'last_activity': '2026-01-22T18:37:43.309137Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 195s E 195s E Diff is 830 characters long. Set self.maxDiff to None to see it. 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-34e5b539-69a7-4f6c-8663-235c9487ba1d.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41665 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42233 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 34e5b539-69a7-4f6c-8663-235c9487ba1d, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7af258b2-b7f4-4b32-8bd7-061c9133a36d 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c22e184c-1a9f-4132-ae36-24814a28c11e (::1) 0.930000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 7.940000ms referer=None 195s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ---------------------------- Captured stderr setup ----------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 195s from subprocess import PIPE, Popen 195s File "/usr/lib/python3.14/subprocess.py", line 49, in 195s import signal 195s File "/usr/lib/python3.14/signal.py", line 19, in 195s _IntEnum._convert_( 195s ~~~~~~~~~~~~~~~~~~^ 195s 'Sigmasks', __name__, 195s ^^^^^^^^^^^^^^^^^^^^^ 195s lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 913, in _convert_ 195s sys.modules[cls.__module__].__dict__.update(cls.__members__) 195s ^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 788, in __members__ 195s @bltns.property 195s 195s KeyboardInterrupt 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-114c66bf-bc31-4c07-905c-758a057eaafb.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57723 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59625 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 114c66bf-bc31-4c07-905c-758a057eaafb, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.340000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34e5b539-69a7-4f6c-8663-235c9487ba1d 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 1.050000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 114c66bf-bc31-4c07-905c-758a057eaafb 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 114c66bf-bc31-4c07-905c-758a057eaafb 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 7.080000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 514, in 195s from nt import _getfullpathname 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1365, in find_spec 195s File "", line 152, in _path_stat 195s KeyboardInterrupt 195s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.750000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwag49_1_/runtime/kernel-cf89b2f9-3b0d-454c-baf8-958623ec0597.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48777 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33679 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: cf89b2f9-3b0d-454c-baf8-958623ec0597, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpwag49_1_/notebooks/foo'} 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 114c66bf-bc31-4c07-905c-758a057eaafb 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 114c66bf-bc31-4c07-905c-758a057eaafb 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 14.610000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cf89b2f9-3b0d-454c-baf8-958623ec0597 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf89b2f9-3b0d-454c-baf8-958623ec0597 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/840ab5ad-b709-47e4-9943-ef61005d2cb2', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 195s yielded = self.gen.send(value) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 195s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 195s stopper = ensure_async(km.shutdown_kernel(now, restart)) 195s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 195s return _runner_map[name].run(inner) 195s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 195s return fut.result(None) 195s ~~~~~~~~~~^^^^^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 195s return self.__get_result() 195s ~~~~~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 195s raise self._exception 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 170, in 195s from nt import _path_splitroot_ex as splitroot 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1261, in _find_spec 195s KeyboardInterrupt 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cf89b2f9-3b0d-454c-baf8-958623ec0597 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s _______________________ AsyncSessionAPITest.test_create ________________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log setup ------------------------------ 195s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpl4ntyjw7/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpl4ntyjw7/etc/jupyter'] for config files 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpl4ntyjw7/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpl4ntyjw7/config 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpl4ntyjw7/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 195s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpl4ntyjw7/config 195s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpl4ntyjw7/notebooks 195s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 195s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 195s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 195s WARNING NotebookApp:handlers.py:612 Forbidden 195s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.490000ms referer=None 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-19b519f0-063d-44c7-b215-419ae33e55d6.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33053 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39529 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 19b519f0-063d-44c7-b215-419ae33e55d6, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpl4ntyjw7/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.450000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499 (::1) 0.550000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 19b519f0-063d-44c7-b215-419ae33e55d6 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19b519f0-063d-44c7-b215-419ae33e55d6 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499 (::1) 6.830000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 195s from ._version import ( 195s ...<4 lines>... 195s ) 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1369, in find_spec 195s File "", line 1412, in _fill_cache 195s KeyboardInterrupt 195s _______________ AsyncSessionAPITest.test_create_console_session ________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/615ff455-6b26-4b44-aad7-45d0e83994c4 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-ec862597-3345-417a-8234-d34cf645f03a.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38063 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37883 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec862597-3345-417a-8234-d34cf645f03a, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpl4ntyjw7/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.520000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 19b519f0-063d-44c7-b215-419ae33e55d6 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19b519f0-063d-44c7-b215-419ae33e55d6 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/89a2f3e7-cb9c-4f3a-8981-8ce676ded499 (::1) 0.850000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec862597-3345-417a-8234-d34cf645f03a 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec862597-3345-417a-8234-d34cf645f03a 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/615ff455-6b26-4b44-aad7-45d0e83994c4 (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/615ff455-6b26-4b44-aad7-45d0e83994c4', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/615ff455-6b26-4b44-aad7-45d0e83994c4 (::1) 8.640000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 195s from subprocess import PIPE, Popen 195s File "/usr/lib/python3.14/subprocess.py", line 49, in 195s import signal 195s File "/usr/lib/python3.14/signal.py", line 7, in 195s _IntEnum._convert_( 195s ~~~~~~~~~~~~~~~~~~^ 195s 'Signals', __name__, 195s ^^^^^^^^^^^^^^^^^^^^ 195s ...<2 lines>... 195s and (name.startswith('SIG') and not name.startswith('SIG_')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s or name.startswith('CTRL_')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 195s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 195s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 195s setattr(enum_class, name, member) 195s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 195s def __setattr__(cls, name, value): 195s 195s KeyboardInterrupt 195s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/06d46a2a-cf99-4d50-a540-9dc425f5323e 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36151 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40777 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpl4ntyjw7/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.950000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec862597-3345-417a-8234-d34cf645f03a 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec862597-3345-417a-8234-d34cf645f03a 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/615ff455-6b26-4b44-aad7-45d0e83994c4 (::1) 1.120000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/06d46a2a-cf99-4d50-a540-9dc425f5323e (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/06d46a2a-cf99-4d50-a540-9dc425f5323e', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/06d46a2a-cf99-4d50-a540-9dc425f5323e (::1) 13.410000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 195s from ipykernel import kernelapp as app 195s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 195s from .connect import * # noqa: F403 195s ^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 195s from subprocess import PIPE, Popen 195s File "/usr/lib/python3.14/subprocess.py", line 49, in 195s import signal 195s File "/usr/lib/python3.14/signal.py", line 7, in 195s _IntEnum._convert_( 195s ~~~~~~~~~~~~~~~~~~^ 195s 'Signals', __name__, 195s ^^^^^^^^^^^^^^^^^^^^ 195s ...<2 lines>... 195s and (name.startswith('SIG') and not name.startswith('SIG_')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s or name.startswith('CTRL_')) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 195s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 195s File "/usr/lib/python3.14/enum.py", line 1869, in convert_class 195s member = new_member(enum_class, *value) 195s KeyboardInterrupt 195s _________________ AsyncSessionAPITest.test_create_file_session _________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-89601b6d-25b8-4cdd-b84b-01b899752a46.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40017 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42787 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89601b6d-25b8-4cdd-b84b-01b899752a46, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpl4ntyjw7/notebooks/foo'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.270000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/06d46a2a-cf99-4d50-a540-9dc425f5323e (::1) 0.800000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89601b6d-25b8-4cdd-b84b-01b899752a46 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89601b6d-25b8-4cdd-b84b-01b899752a46 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c (::1) 7.280000ms referer=None 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 77, in 195s class PurePath: 195s ...<516 lines>... 195s return True 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 197, in PurePath 195s @property 195s ^^^^^^^^ 195s KeyboardInterrupt 195s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 195s 195s self = 195s 195s def test_create_with_kernel_id(self): 195s # create a new kernel 195s r = self.request('POST', 'api/kernels') 195s r.raise_for_status() 195s kernel = r.json() 195s 195s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 195s self.assertEqual(resp.status_code, 201) 195s newsession = resp.json() 195s self.assertIn('id', newsession) 195s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 195s self.assertEqual(newsession['kernel']['id'], kernel['id']) 195s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 195s 195s sessions = self.sess_api.list().json() 195s > self.assertEqual(sessions, [newsession]) 195s E AssertionError: Lists differ: [{'id': 'df81d906-a0a2-41b6-8523-22a85217716c', 'p[553 chars]ne}}] != [{'id': '975dd807-f68e-479e-83d8-f6804e736a8c', 'p[279 chars]ne}}] 195s E 195s E First differing element 0: 195s E {'id': 'df81d906-a0a2-41b6-8523-22a85217716c', 'p[218 chars]: 0}} 195s E {'id': '975dd807-f68e-479e-83d8-f6804e736a8c', 'p[278 chars]one}} 195s E 195s E First list contains 1 additional elements. 195s E First extra element 1: 195s E {'id': '975dd807-f68e-479e-83d8-f6804e736a8c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '0e1839dd-04be-4472-b1c1-ae54d96cc11d', 'name': 'python3', 'last_activity': '2026-01-22T18:37:43.853292Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 195s E 195s E Diff is 830 characters long. Set self.maxDiff to None to see it. 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-0e1839dd-04be-4472-b1c1-ae54d96cc11d.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43675 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54597 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0e1839dd-04be-4472-b1c1-ae54d96cc11d, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.340000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.560000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89601b6d-25b8-4cdd-b84b-01b899752a46 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89601b6d-25b8-4cdd-b84b-01b899752a46 195s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/df81d906-a0a2-41b6-8523-22a85217716c (::1) 1.970000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s ERROR NotebookApp:log.py:55 { 195s "Host": "localhost:12341", 195s "Accept": "*/*", 195s "User-Agent": "python-requests/2.32.5" 195s } 195s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 8.640000ms referer=None 195s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.860000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-5167bf30-925d-454b-a2e1-31e62fcab5d9.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41189 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33585 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5167bf30-925d-454b-a2e1-31e62fcab5d9, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.540000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 2.290000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.620000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5167bf30-925d-454b-a2e1-31e62fcab5d9 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5167bf30-925d-454b-a2e1-31e62fcab5d9 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 514, in 195s from nt import _getfullpathname 195s File "", line 1371, in _find_and_load 195s File "", line 1333, in _find_and_load_unlocked 195s File "", line 1267, in _find_spec 195s File "", line 1292, in find_spec 195s File "", line 1266, in _get_spec 195s File "", line 1397, in find_spec 195s KeyboardInterrupt 195s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 195s 195s @self.addCleanup 195s def cleanup_sessions(): 195s for session in self.sess_api.list().json(): 195s > self.sess_api.delete(session['id']) 195s 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 195s return self._req('DELETE', id) 195s ^^^^^^^^^^^^^^^^^^^^^^^ 195s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 195s response.raise_for_status() 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s self = 195s 195s def raise_for_status(self): 195s """Raises :class:`HTTPError`, if one occurred.""" 195s 195s http_error_msg = "" 195s if isinstance(self.reason, bytes): 195s # We attempt to decode utf-8 first because some servers 195s # choose to localize their reason strings. If the string 195s # isn't utf-8, we fall back to iso-8859-1 for all other 195s # encodings. (See PR #3538) 195s try: 195s reason = self.reason.decode("utf-8") 195s except UnicodeDecodeError: 195s reason = self.reason.decode("iso-8859-1") 195s else: 195s reason = self.reason 195s 195s if 400 <= self.status_code < 500: 195s http_error_msg = ( 195s f"{self.status_code} Client Error: {reason} for url: {self.url}" 195s ) 195s 195s elif 500 <= self.status_code < 600: 195s http_error_msg = ( 195s f"{self.status_code} Server Error: {reason} for url: {self.url}" 195s ) 195s 195s if http_error_msg: 195s > raise HTTPError(http_error_msg, response=self) 195s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c 195s 195s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 195s ------------------------------ Captured log call ------------------------------- 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 195s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpl4ntyjw7/runtime/kernel-97cabc29-e07f-4afd-9b98-9daa9e5c49c4.json'] 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57503 195s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49459 195s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97cabc29-e07f-4afd-9b98-9daa9e5c49c4, name: python3 195s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpl4ntyjw7/notebooks/foo'} 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5167bf30-925d-454b-a2e1-31e62fcab5d9 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5167bf30-925d-454b-a2e1-31e62fcab5d9 195s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 17.250000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.740000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 195s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 195s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97cabc29-e07f-4afd-9b98-9daa9e5c49c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97cabc29-e07f-4afd-9b98-9daa9e5c49c4 195s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c (::1) 195s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/975dd807-f68e-479e-83d8-f6804e736a8c', version='HTTP/1.1', remote_ip='::1') 195s Traceback (most recent call last): 195s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 195s result = await result 195s ^^^^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 195s future.result() 195s ~~~~~~~~~~~~~^^ 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 195s yield maybe_future(sm.delete_session(session_id)) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 195s yielded = self.gen.throw(exc) 195s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 195s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 195s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 195s value = future.result() 195s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 195s raise self._exception.with_traceback(self._exception_tb) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 195s result = coro.send(None) 195s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 195s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 195s raise km.ready.exception() # type: ignore[misc] 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 195s await kernel_awaitable 195s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 195s result = await obj 195s ^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 195s raise e 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 195s out = await method(self, *args, **kwargs) 195s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 195s await self._async_finish_shutdown(restart=restart) 195s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 195s await asyncio.wait_for( 195s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 195s ) 195s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 195s async with timeouts.timeout(timeout): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^ 195s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 195s raise RuntimeError("Timeout should be used inside a task") 195s RuntimeError: Timeout should be used inside a task 195s WARNING NotebookApp:handlers.py:612 Unhandled error 195s --------------------------- Captured stderr teardown --------------------------- 195s Traceback (most recent call last): 195s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 195s return _run_code(code, main_globals, None, 195s "__main__", mod_spec) 195s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 195s exec(code, run_globals) 195s ~~~~^^^^^^^^^^^^^^^^^^^ 195s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 195s from pathlib import Path 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 195s class PureWindowsPath(PurePath): 195s ...<7 lines>... 195s __slots__ = () 195s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 195s import ntpath 195s File "/usr/lib/python3.14/ntpath.py", line 170, in 195s from nt import _path_splitroot_ex as splitroot 195s File "", line 1368, in _find_and_load 195s File "", line 421, in __enter__ 195s File "", line 316, in acquire 195s KeyboardInterrupt 195s ---------------------------- Captured log teardown ----------------------------- 195s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97cabc29-e07f-4afd-9b98-9daa9e5c49c4 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0e1839dd-04be-4472-b1c1-ae54d96cc11d 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19b519f0-063d-44c7-b215-419ae33e55d6 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec862597-3345-417a-8234-d34cf645f03a 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89601b6d-25b8-4cdd-b84b-01b899752a46 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06408cc1-e2e8-4cb6-816e-fbdaecdcc4f9 195s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5167bf30-925d-454b-a2e1-31e62fcab5d9 195s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 195s =============================== warnings summary =============================== 195s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 195s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 195s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 195s return LooseVersion(v) >= LooseVersion(check) 195s 195s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 195s services/kernels/tests/test_kernels_api.py: 68 warnings 195s services/sessions/tests/test_sessions_api.py: 88 warnings 195s /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). 195s dt = unaware(*args, **kwargs) 195s 195s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 195s /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 195s pytestmark = pytest.mark.integration_tests 195s 195s services/kernels/tests/test_kernels_api.py: 6 warnings 195s services/sessions/tests/test_sessions_api.py: 6 warnings 195s /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 195s policy = events.get_event_loop_policy() 195s 195s services/kernels/tests/test_kernels_api.py: 24 warnings 195s services/sessions/tests/test_sessions_api.py: 19 warnings 195s /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 195s loop = events.get_event_loop_policy().get_event_loop() 195s 195s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 195s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 195s loop.make_current() 195s 195s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 195s =========================== short test summary info ============================ 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 195s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 195s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 195s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 195s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 195s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 195s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 195s ========== 23 failed, 307 deselected, 216 warnings, 4 errors in 6.54s ========== 195s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 195s *** 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 197s ============================= test session starts ============================== 197s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 197s rootdir: /tmp/autopkgtest.0SV8Xi/autopkgtest_tmp 197s plugins: typeguard-4.4.4 197s collected 330 items / 307 deselected / 23 selected 197s run-last-failure: rerun previous 23 failures 197s 199s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 200s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [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/a4cc9273-1d82-4605-ae84-0cc3007a50bb 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 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 200s import asyncio 200s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 200s from .base_events import * 200s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 200s import concurrent.futures 200s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 200s from concurrent.futures._base import (FIRST_COMPLETED, 200s ...<9 lines>... 200s as_completed) 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 200s import logging 200s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 200s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 200s File "/usr/lib/python3.14/traceback.py", line 12, in 200s import _colorize 200s File "/usr/lib/python3.14/_colorize.py", line 201, in 200s @dataclass(frozen=True) 200s ~~~~~~~~~^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 200s return _process_class(cls, init, repr, eq, order, unsafe_hash, 200s frozen, match_args, kw_only, slots, 200s weakref_slot) 200s File "/usr/lib/python3.14/dataclasses.py", line 1222, in _process_class 200s text_sig = str(inspect.signature( 200s ~~~~~~~~~~~~~~~~~^ 200s cls, 200s ^^^^ 200s annotation_format=annotationlib.Format.FORWARDREF, 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s )).replace(' -> None', '') 200s ^ 200s File "/usr/lib/python3.14/inspect.py", line 3321, in signature 200s return Signature.from_callable(obj, follow_wrapped=follow_wrapped, 200s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s globals=globals, locals=locals, eval_str=eval_str, 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s annotation_format=annotation_format) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/inspect.py", line 3036, in from_callable 200s return _signature_from_callable(obj, sigcls=cls, 200s follow_wrapper_chains=follow_wrapped, 200s globals=globals, locals=locals, eval_str=eval_str, 200s annotation_format=annotation_format) 200s File "/usr/lib/python3.14/inspect.py", line 2557, in _signature_from_callable 200s return _get_signature_of(init) 200s File "/usr/lib/python3.14/inspect.py", line 2440, in _signature_from_callable 200s sig = _get_signature_of(obj.__func__) 200s File "/usr/lib/python3.14/inspect.py", line 2511, in _signature_from_callable 200s return _signature_from_function(sigcls, obj, 200s skip_bound_arg=skip_bound_arg, 200s globals=globals, locals=locals, eval_str=eval_str, 200s annotation_format=annotation_format) 200s File "/usr/lib/python3.14/inspect.py", line 2334, in _signature_from_function 200s annotations = get_annotations(func, globals=globals, locals=locals, eval_str=eval_str, 200s format=annotation_format) 200s File "/usr/lib/python3.14/annotationlib.py", line 973, in get_annotations 200s ann = _get_and_call_annotate(obj, format) 200s File "/usr/lib/python3.14/annotationlib.py", line 1112, in _get_and_call_annotate 200s ann = call_annotate_function(annotate, format, owner=obj) 200s File "/usr/lib/python3.14/annotationlib.py", line 711, in call_annotate_function 200s return annotate(format) 200s File "/usr/lib/python3.14/dataclasses.py", line 548, in __annotate__ 200s annotationlib.get_annotations(base, format=format) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/annotationlib.py", line 898, in get_annotations 200s def get_annotations( 200s 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0gbt2ie8/runtime/kernel-a4cc9273-1d82-4605-ae84-0cc3007a50bb.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33719 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55079 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a4cc9273-1d82-4605-ae84-0cc3007a50bb, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 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.470000ms 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/tmp0gbt2ie8/runtime/kernel-b1d15989-7ef7-49f1-b856-1e16474f5082.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38555 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55849 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1d15989-7ef7-49f1-b856-1e16474f5082, 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) 23.190000ms 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.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b1d15989-7ef7-49f1-b856-1e16474f5082 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b1d15989-7ef7-49f1-b856-1e16474f5082/interrupt (::1) 1.830000ms 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/b1d15989-7ef7-49f1-b856-1e16474f5082/restart (::1) 9.310000ms 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.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a4cc9273-1d82-4605-ae84-0cc3007a50bb 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a4cc9273-1d82-4605-ae84-0cc3007a50bb 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/a4cc9273-1d82-4605-ae84-0cc3007a50bb (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a4cc9273-1d82-4605-ae84-0cc3007a50bb', 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 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 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/a4cc9273-1d82-4605-ae84-0cc3007a50bb (::1) 13.060000ms 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 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 381, in 200s import copyreg 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 845, in get_code 200s File "", line 968, in path_stats 200s File "", line 145, 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/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Could not import runpy._run_module_as_main 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/tmpgrgw2h1w/runtime/kernel-5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52473 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35839 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.560000ms 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.730000ms 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/tmpgrgw2h1w/runtime/kernel-a78e5b71-4cf7-4c44-aa02-28aa5b001bd8.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59575 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52585 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a78e5b71-4cf7-4c44-aa02-28aa5b001bd8, 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.140000ms 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.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a78e5b71-4cf7-4c44-aa02-28aa5b001bd8 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a78e5b71-4cf7-4c44-aa02-28aa5b001bd8/interrupt (::1) 1.770000ms 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/a78e5b71-4cf7-4c44-aa02-28aa5b001bd8/restart (::1) 7.320000ms 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.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 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/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6', 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/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 (::1) 14.230000ms referer=None 200s --------------------------- Captured stderr teardown --------------------------- 200s Traceback (most recent call last): 200s File "", line 1249, in _path_importer_cache 200s KeyError: '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp' 200s 200s During handling of the above exception, another exception occurred: 200s 200s Traceback (most recent call last): 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 1453, in path_hook_for_FileFinder 200s File "", line 1331, in __init__ 200s KeyboardInterrupt 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 "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 20, in 200s from zmq.utils.interop import cast_int_addr 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab 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/tmp4_gtoswl/runtime/kernel-6a137506-5d3e-46ba-9c72-32cc17142e92.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59975 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33887 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6a137506-5d3e-46ba-9c72-32cc17142e92, 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.640000ms 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.830000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 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.640000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808d57cd-e9f0-4cb6-a59a-181a6471e512 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808d57cd-e9f0-4cb6-a59a-181a6471e512 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/54b4c2a5-e9d4-437d-a57e-90adeb32eea5 (::1) 1.470000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6a137506-5d3e-46ba-9c72-32cc17142e92 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6a137506-5d3e-46ba-9c72-32cc17142e92 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 7.620000ms referer=None 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 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/tmpy0rzh24c/runtime/kernel-1a29d35a-f986-4ab7-90b0-7235c57b17e1.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58777 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51059 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1a29d35a-f986-4ab7-90b0-7235c57b17e1, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.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) 4.530000ms 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.600000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e552f46c-d85d-45bf-b21a-92375b5fbd84 (::1) 0.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a29d35a-f986-4ab7-90b0-7235c57b17e1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a29d35a-f986-4ab7-90b0-7235c57b17e1 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979', 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/3204e75e-0540-4e45-9ee7-20166229fba3 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0gbt2ie8/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0gbt2ie8/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0gbt2ie8/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0gbt2ie8/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0gbt2ie8/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0gbt2ie8/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0gbt2ie8/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.670000ms 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/tmp0gbt2ie8/runtime/kernel-3204e75e-0540-4e45-9ee7-20166229fba3.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48583 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38245 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3204e75e-0540-4e45-9ee7-20166229fba3, 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) 54.360000ms 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.660000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3204e75e-0540-4e45-9ee7-20166229fba3 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3204e75e-0540-4e45-9ee7-20166229fba3 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/3204e75e-0540-4e45-9ee7-20166229fba3 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3204e75e-0540-4e45-9ee7-20166229fba3', 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/3204e75e-0540-4e45-9ee7-20166229fba3 (::1) 8.810000ms 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 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 "", line 1371, in _find_and_load 200s File "", line 1333, in _find_and_load_unlocked 200s File "", line 1261, in _find_spec 200s File "", line 1227, in __enter__ 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/4a60df43-81f5-4159-84d2-16df06c2865e 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/tmp0gbt2ie8/runtime/kernel-4a60df43-81f5-4159-84d2-16df06c2865e.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37951 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55797 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a60df43-81f5-4159-84d2-16df06c2865e, 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.380000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4a60df43-81f5-4159-84d2-16df06c2865e (::1) 1.620000ms 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.560000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a60df43-81f5-4159-84d2-16df06c2865e 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a60df43-81f5-4159-84d2-16df06c2865e 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/4a60df43-81f5-4159-84d2-16df06c2865e (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4a60df43-81f5-4159-84d2-16df06c2865e', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 200s yielded = ctx_run(next, result) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 200s yield maybe_future(km.shutdown_kernel(kernel_id)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4a60df43-81f5-4159-84d2-16df06c2865e (::1) 7.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) 0.470000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3204e75e-0540-4e45-9ee7-20166229fba3 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3204e75e-0540-4e45-9ee7-20166229fba3 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3204e75e-0540-4e45-9ee7-20166229fba3 (::1) 1.790000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a60df43-81f5-4159-84d2-16df06c2865e 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a60df43-81f5-4159-84d2-16df06c2865e 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4a60df43-81f5-4159-84d2-16df06c2865e (::1) 0.610000ms 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 106, in 200s from .decoder import JSONDecoder, JSONDecodeError 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_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/b1d15989-7ef7-49f1-b856-1e16474f5082/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 16, in 200s from ipykernel import kernelapp as app 200s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 200s from .connect import * # noqa: F403 200s ^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 200s import jupyter_client 200s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 200s from .asynchronous import AsyncKernelClient 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 200s from .client import AsyncKernelClient # noqa 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 200s import zmq.asyncio 200s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 200s import asyncio 200s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 200s from .base_events import * 200s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 200s import concurrent.futures 200s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 200s from concurrent.futures._base import (FIRST_COMPLETED, 200s ...<9 lines>... 200s as_completed) 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 200s import logging 200s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 200s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 200s File "/usr/lib/python3.14/traceback.py", line 12, in 200s import _colorize 200s File "/usr/lib/python3.14/_colorize.py", line 201, in 200s @dataclass(frozen=True) 200s ~~~~~~~~~^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 200s return _process_class(cls, init, repr, eq, order, unsafe_hash, 200s frozen, match_args, kw_only, slots, 200s weakref_slot) 200s File "/usr/lib/python3.14/dataclasses.py", line 1222, in _process_class 200s text_sig = str(inspect.signature( 200s ~~~~~~~~~~~~~~~~~^ 200s cls, 200s ^^^^ 200s annotation_format=annotationlib.Format.FORWARDREF, 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s )).replace(' -> None', '') 200s ^ 200s File "/usr/lib/python3.14/inspect.py", line 3321, in signature 200s return Signature.from_callable(obj, follow_wrapped=follow_wrapped, 200s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s globals=globals, locals=locals, eval_str=eval_str, 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s annotation_format=annotation_format) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/inspect.py", line 3036, in from_callable 200s return _signature_from_callable(obj, sigcls=cls, 200s follow_wrapper_chains=follow_wrapped, 200s globals=globals, locals=locals, eval_str=eval_str, 200s annotation_format=annotation_format) 200s File "/usr/lib/python3.14/inspect.py", line 2557, in _signature_from_callable 200s return _get_signature_of(init) 200s File "/usr/lib/python3.14/inspect.py", line 2440, in _signature_from_callable 200s sig = _get_signature_of(obj.__func__) 200s File "/usr/lib/python3.14/inspect.py", line 2511, in _signature_from_callable 200s return _signature_from_function(sigcls, obj, 200s skip_bound_arg=skip_bound_arg, 200s globals=globals, locals=locals, eval_str=eval_str, 200s annotation_format=annotation_format) 200s File "/usr/lib/python3.14/inspect.py", line 2334, in _signature_from_function 200s annotations = get_annotations(func, globals=globals, locals=locals, eval_str=eval_str, 200s format=annotation_format) 200s File "/usr/lib/python3.14/annotationlib.py", line 973, in get_annotations 200s ann = _get_and_call_annotate(obj, format) 200s File "/usr/lib/python3.14/annotationlib.py", line 1112, in _get_and_call_annotate 200s ann = call_annotate_function(annotate, format, owner=obj) 200s File "/usr/lib/python3.14/annotationlib.py", line 711, in call_annotate_function 200s return annotate(format) 200s File "/usr/lib/python3.14/dataclasses.py", line 548, in __annotate__ 200s annotationlib.get_annotations(base, format=format) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/annotationlib.py", line 898, in get_annotations 200s def get_annotations( 200s 200s KeyboardInterrupt 200s ------------------------------ Captured log call ------------------------------- 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 200s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0gbt2ie8/runtime/kernel-a4cc9273-1d82-4605-ae84-0cc3007a50bb.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33719 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55079 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a4cc9273-1d82-4605-ae84-0cc3007a50bb, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 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.470000ms 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/tmp0gbt2ie8/runtime/kernel-b1d15989-7ef7-49f1-b856-1e16474f5082.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38555 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55849 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: b1d15989-7ef7-49f1-b856-1e16474f5082, 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) 23.190000ms 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.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b1d15989-7ef7-49f1-b856-1e16474f5082 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b1d15989-7ef7-49f1-b856-1e16474f5082/interrupt (::1) 1.830000ms 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/b1d15989-7ef7-49f1-b856-1e16474f5082/restart (::1) 9.310000ms 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.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a4cc9273-1d82-4605-ae84-0cc3007a50bb 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a4cc9273-1d82-4605-ae84-0cc3007a50bb 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/a4cc9273-1d82-4605-ae84-0cc3007a50bb (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a4cc9273-1d82-4605-ae84-0cc3007a50bb', 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 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 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/a4cc9273-1d82-4605-ae84-0cc3007a50bb (::1) 13.060000ms 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': 'a4cc9273-1d82-4605-ae84-0cc3007a5[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': 'a4cc9273-1d82-4605-ae84-0cc3007a50bb', 'name': 'python3', 'last_activity': '2026-01-22T18:37:49.022535Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'a4cc9273-1d82-4605-ae84-0cc3007a50bb', 200s E - 'last_activity': '2026-01-22T18:37:49.022535Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'b1d15989-7ef7-49f1-b856-1e16474f5082', 200s E - 'last_activity': '2026-01-22T18:37:49.049474Z', 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.530000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.960000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a4cc9273-1d82-4605-ae84-0cc3007a50bb 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a4cc9273-1d82-4605-ae84-0cc3007a50bb 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a4cc9273-1d82-4605-ae84-0cc3007a50bb (::1) 1.790000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b1d15989-7ef7-49f1-b856-1e16474f5082 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b1d15989-7ef7-49f1-b856-1e16474f5082 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b1d15989-7ef7-49f1-b856-1e16474f5082 (::1) 0.680000ms 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/78da56e7-2f08-4f27-8330-4764a30eaace 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgrgw2h1w/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgrgw2h1w/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgrgw2h1w/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgrgw2h1w/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgrgw2h1w/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgrgw2h1w/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgrgw2h1w/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.420000ms 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/tmpgrgw2h1w/runtime/kernel-78da56e7-2f08-4f27-8330-4764a30eaace.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45239 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47011 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78da56e7-2f08-4f27-8330-4764a30eaace, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.140000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 0.530000ms 200s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace/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 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49341 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (starting) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (busy) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (idle) 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 78da56e7-2f08-4f27-8330-4764a30eaace) to 5.4 (client). 200s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace/channels (::1) 573.620000ms 200s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace/channels 200s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47011 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49341 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45239 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34657 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49341 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45239 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 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 0.560000ms 200s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (busy) 200s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (busy) 200s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (idle) 200s DEBUG NotebookApp:kernelmanager.py:423 activity on 78da56e7-2f08-4f27-8330-4764a30eaace: status (idle) 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:handlers.py:579 Websocket closed 78da56e7-2f08-4f27-8330-4764a30eaace:da8c40e5-a8a94227ef08c5b5a756ef39 200s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 78da56e7-2f08-4f27-8330-4764a30eaace:da8c40e5-a8a94227ef08c5b5a756ef39 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 0.870000ms 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 78da56e7-2f08-4f27-8330-4764a30eaace:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 78da56e7-2f08-4f27-8330-4764a30eaace:iopub 200s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 78da56e7-2f08-4f27-8330-4764a30eaace: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/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 1.640000ms 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.500000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78da56e7-2f08-4f27-8330-4764a30eaace 200s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 78da56e7-2f08-4f27-8330-4764a30eaace:da8c40e5-a8a94227ef08c5b5a756ef39 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78da56e7-2f08-4f27-8330-4764a30eaace 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/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace', 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/03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 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/tmpgrgw2h1w/runtime/kernel-03702b9c-a8a5-4aa6-a633-16c8acfa6f6a.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40479 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47525 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.170000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78da56e7-2f08-4f27-8330-4764a30eaace 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78da56e7-2f08-4f27-8330-4764a30eaace 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/78da56e7-2f08-4f27-8330-4764a30eaace (::1) 1.750000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 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/03702b9c-a8a5-4aa6-a633-16c8acfa6f6a (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/03702b9c-a8a5-4aa6-a633-16c8acfa6f6a', 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 ____________________ 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/24f51395-d37c-4c32-b84d-aa3a47e96576 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 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 "", 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 1384, in find_spec 200s KeyboardInterrupt 200s Exception ignored while calling weakref callback .cb at 0x6a823087bb60>: 200s Traceback (most recent call last): 200s File "", line 448, in cb 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/tmpgrgw2h1w/runtime/kernel-24f51395-d37c-4c32-b84d-aa3a47e96576.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45731 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38223 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24f51395-d37c-4c32-b84d-aa3a47e96576, 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.930000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/24f51395-d37c-4c32-b84d-aa3a47e96576 (::1) 0.550000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 200s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.780000ms referer=None 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24f51395-d37c-4c32-b84d-aa3a47e96576 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24f51395-d37c-4c32-b84d-aa3a47e96576 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/24f51395-d37c-4c32-b84d-aa3a47e96576 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/24f51395-d37c-4c32-b84d-aa3a47e96576', 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/24f51395-d37c-4c32-b84d-aa3a47e96576 (::1) 15.070000ms 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.770000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/03702b9c-a8a5-4aa6-a633-16c8acfa6f6a (::1) 0.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24f51395-d37c-4c32-b84d-aa3a47e96576 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24f51395-d37c-4c32-b84d-aa3a47e96576 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/24f51395-d37c-4c32-b84d-aa3a47e96576 (::1) 0.620000ms 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/a78e5b71-4cf7-4c44-aa02-28aa5b001bd8/restart 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s Could not import runpy._run_module_as_main 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/tmpgrgw2h1w/runtime/kernel-5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52473 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35839 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.560000ms 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.730000ms 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/tmpgrgw2h1w/runtime/kernel-a78e5b71-4cf7-4c44-aa02-28aa5b001bd8.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59575 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52585 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: a78e5b71-4cf7-4c44-aa02-28aa5b001bd8, 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.140000ms 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.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a78e5b71-4cf7-4c44-aa02-28aa5b001bd8 200s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a78e5b71-4cf7-4c44-aa02-28aa5b001bd8/interrupt (::1) 1.770000ms 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/a78e5b71-4cf7-4c44-aa02-28aa5b001bd8/restart (::1) 7.320000ms 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.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 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/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6', 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/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 (::1) 14.230000ms 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': '5eb6d8da-ee5f-4ebc-a35f-cfa9de900[281 chars]: 0}] != [] 200s E 200s E First list contains 2 additional elements. 200s E First extra element 0: 200s E {'id': '5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6', 'name': 'python3', 'last_activity': '2026-01-22T18:37:50.005081Z', 'execution_state': 'starting', 'connections': 0} 200s E 200s E + [] 200s E - [{'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': '5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6', 200s E - 'last_activity': '2026-01-22T18:37:50.005081Z', 200s E - 'name': 'python3'}, 200s E - {'connections': 0, 200s E - 'execution_state': 'starting', 200s E - 'id': 'a78e5b71-4cf7-4c44-aa02-28aa5b001bd8', 200s E - 'last_activity': '2026-01-22T18:37:50.032303Z', 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.550000ms 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.470000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 (::1) 1.760000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a78e5b71-4cf7-4c44-aa02-28aa5b001bd8 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a78e5b71-4cf7-4c44-aa02-28aa5b001bd8 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03702b9c-a8a5-4aa6-a633-16c8acfa6f6a 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78da56e7-2f08-4f27-8330-4764a30eaace 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5eb6d8da-ee5f-4ebc-a35f-cfa9de9007f6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24f51395-d37c-4c32-b84d-aa3a47e96576 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/56dbe7e5-0762-406a-9eae-2e9fa1be1c70 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4_gtoswl/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4_gtoswl/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4_gtoswl/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4_gtoswl/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4_gtoswl/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4_gtoswl/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4_gtoswl/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.410000ms 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) 2.060000ms 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/tmp4_gtoswl/runtime/kernel-2485effc-37ee-458c-8a2e-b42a799ed113.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50873 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45755 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2485effc-37ee-458c-8a2e-b42a799ed113, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4_gtoswl/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.640000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.820000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/56dbe7e5-0762-406a-9eae-2e9fa1be1c70 (::1) 4.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.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2485effc-37ee-458c-8a2e-b42a799ed113 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2485effc-37ee-458c-8a2e-b42a799ed113 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/56dbe7e5-0762-406a-9eae-2e9fa1be1c70 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/56dbe7e5-0762-406a-9eae-2e9fa1be1c70', 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/56dbe7e5-0762-406a-9eae-2e9fa1be1c70 (::1) 16.000000ms 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 77, in 200s class PurePath: 200s ...<516 lines>... 200s return True 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/09a69a57-1a66-4f2e-862d-64fd30f571c3 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/tmp4_gtoswl/runtime/kernel-f248bb91-4016-4f5c-8077-0d021606f8b8.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57369 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42535 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: f248bb91-4016-4f5c-8077-0d021606f8b8, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4_gtoswl/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.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) 0.630000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2485effc-37ee-458c-8a2e-b42a799ed113 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2485effc-37ee-458c-8a2e-b42a799ed113 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/56dbe7e5-0762-406a-9eae-2e9fa1be1c70 (::1) 2.660000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f248bb91-4016-4f5c-8077-0d021606f8b8 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f248bb91-4016-4f5c-8077-0d021606f8b8 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/09a69a57-1a66-4f2e-862d-64fd30f571c3 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/09a69a57-1a66-4f2e-862d-64fd30f571c3', 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 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 381, in 200s import copyreg 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 951, in get_data 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/076239a5-ba36-42d6-9b3f-9fba6747dbe4 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ----------------------------- Captured stderr call ----------------------------- 200s /usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '/tmp/tmpgrgw2h1w/home' is not a writable location, using a temp directory. 200s warn("IPython parent '{0}' is not a writable location," 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/tmp4_gtoswl/runtime/kernel-fa201b7d-9cda-4b25-ae44-7feccc47f1a8.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47759 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47123 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: fa201b7d-9cda-4b25-ae44-7feccc47f1a8, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4_gtoswl/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) 0.630000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f248bb91-4016-4f5c-8077-0d021606f8b8 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f248bb91-4016-4f5c-8077-0d021606f8b8 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/09a69a57-1a66-4f2e-862d-64fd30f571c3 (::1) 1.990000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa201b7d-9cda-4b25-ae44-7feccc47f1a8 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa201b7d-9cda-4b25-ae44-7feccc47f1a8 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/076239a5-ba36-42d6-9b3f-9fba6747dbe4 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/076239a5-ba36-42d6-9b3f-9fba6747dbe4', 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/076239a5-ba36-42d6-9b3f-9fba6747dbe4 (::1) 16.440000ms 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 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 126, in 200s from . import _compiler, _parser 200s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 200s from . import _parser 200s File "/usr/lib/python3.14/re/_parser.py", line 15, in 200s from ._constants import * 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 1393, in find_spec 200s File "", line 131, in _path_join 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/54b4c2a5-e9d4-437d-a57e-90adeb32eea5 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/tmp4_gtoswl/runtime/kernel-808d57cd-e9f0-4cb6-a59a-181a6471e512.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53259 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54861 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 808d57cd-e9f0-4cb6-a59a-181a6471e512, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4_gtoswl/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.090000ms 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.810000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa201b7d-9cda-4b25-ae44-7feccc47f1a8 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa201b7d-9cda-4b25-ae44-7feccc47f1a8 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/076239a5-ba36-42d6-9b3f-9fba6747dbe4 (::1) 0.830000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808d57cd-e9f0-4cb6-a59a-181a6471e512 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808d57cd-e9f0-4cb6-a59a-181a6471e512 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/54b4c2a5-e9d4-437d-a57e-90adeb32eea5 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/54b4c2a5-e9d4-437d-a57e-90adeb32eea5', 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 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 126, in 200s from . import _compiler, _parser 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': '54b4c2a5-e9d4-437d-a57e-90adeb32eea5', 'p[553 chars]ne}}] != [{'id': '9cdc071d-2ce3-4770-abf8-85856a9a0cab', 'p[279 chars]ne}}] 200s E 200s E First differing element 0: 200s E {'id': '54b4c2a5-e9d4-437d-a57e-90adeb32eea5', 'p[218 chars]: 0}} 200s E {'id': '9cdc071d-2ce3-4770-abf8-85856a9a0cab', 'p[278 chars]one}} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': '9cdc071d-2ce3-4770-abf8-85856a9a0cab', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6a137506-5d3e-46ba-9c72-32cc17142e92', 'name': 'python3', 'last_activity': '2026-01-22T18:37:50.609479Z', '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/tmp4_gtoswl/runtime/kernel-6a137506-5d3e-46ba-9c72-32cc17142e92.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59975 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33887 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6a137506-5d3e-46ba-9c72-32cc17142e92, 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.640000ms 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.830000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 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.640000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808d57cd-e9f0-4cb6-a59a-181a6471e512 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808d57cd-e9f0-4cb6-a59a-181a6471e512 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/54b4c2a5-e9d4-437d-a57e-90adeb32eea5 (::1) 1.470000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6a137506-5d3e-46ba-9c72-32cc17142e92 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6a137506-5d3e-46ba-9c72-32cc17142e92 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s ERROR NotebookApp:log.py:55 { 200s "Host": "localhost:12341", 200s "Accept": "*/*", 200s "User-Agent": "python-requests/2.32.5" 200s } 200s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 7.620000ms referer=None 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab 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 7, in 200s import json 200s File "/usr/lib/python3.14/json/__init__.py", line 106, in 200s from .decoder import JSONDecoder, JSONDecodeError 200s File "/usr/lib/python3.14/json/decoder.py", line 5, in 200s from json import scanner 200s File "", line 1371, in _find_and_load 200s File "", line 1345, in _find_and_load_unlocked 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.910000ms 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/tmp4_gtoswl/runtime/kernel-bec5e745-73de-4e65-86c1-b456a96b8de9.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37749 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48437 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: bec5e745-73de-4e65-86c1-b456a96b8de9, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.070000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6a137506-5d3e-46ba-9c72-32cc17142e92 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6a137506-5d3e-46ba-9c72-32cc17142e92 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 2.830000ms 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.470000ms 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.510000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bec5e745-73de-4e65-86c1-b456a96b8de9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bec5e745-73de-4e65-86c1-b456a96b8de9 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 200s yielded = self.gen.send(value) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 200s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 200s stopper = ensure_async(km.shutdown_kernel(now, restart)) 200s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 200s return _runner_map[name].run(inner) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 200s return fut.result(None) 200s ~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 200s return self.__get_result() 200s ~~~~~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 200s raise self._exception 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s 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 245, in 200s _default_decoder = JSONDecoder(object_hook=None, object_pairs_hook=None) 200s File "/usr/lib/python3.14/json/decoder.py", line 337, in __init__ 200s self.scan_once = scanner.make_scanner(self) 200s ~~~~~~~~~~~~~~~~~~~~^^^^^^ 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab 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) 0.730000ms 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/tmp4_gtoswl/runtime/kernel-2cc76231-8e21-4885-87f8-62929d2fe4c0.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40005 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55609 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2cc76231-8e21-4885-87f8-62929d2fe4c0, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp4_gtoswl/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bec5e745-73de-4e65-86c1-b456a96b8de9 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bec5e745-73de-4e65-86c1-b456a96b8de9 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 16.090000ms 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.460000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.690000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2cc76231-8e21-4885-87f8-62929d2fe4c0 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2cc76231-8e21-4885-87f8-62929d2fe4c0 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9cdc071d-2ce3-4770-abf8-85856a9a0cab', 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/9cdc071d-2ce3-4770-abf8-85856a9a0cab (::1) 7.910000ms 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 524, in 200s class _StringGlobber(_GlobberBase): 200s ...<11 lines>... 200s return ((entry, entry.name, entry.path) for entry in entries) 200s KeyboardInterrupt 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2cc76231-8e21-4885-87f8-62929d2fe4c0 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s _______________________ AsyncSessionAPITest.test_create ________________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/88fd14dc-5f13-4f25-af97-e95e9ea493ff 200s 200s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 200s ------------------------------ Captured log setup ------------------------------ 200s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpy0rzh24c/config', '/tmp/autopkgtest.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpy0rzh24c/etc/jupyter'] for config files 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpy0rzh24c/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpy0rzh24c/config 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpy0rzh24c/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.0SV8Xi/autopkgtest_tmp/home/.local/etc/jupyter 200s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpy0rzh24c/config 200s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpy0rzh24c/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.430000ms 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) 0.740000ms 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/tmpy0rzh24c/runtime/kernel-815291db-5fc1-4b92-8948-ab42df4fb21f.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58725 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60719 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 815291db-5fc1-4b92-8948-ab42df4fb21f, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpy0rzh24c/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.440000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/88fd14dc-5f13-4f25-af97-e95e9ea493ff (::1) 0.540000ms 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.510000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 815291db-5fc1-4b92-8948-ab42df4fb21f 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 815291db-5fc1-4b92-8948-ab42df4fb21f 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/88fd14dc-5f13-4f25-af97-e95e9ea493ff (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/88fd14dc-5f13-4f25-af97-e95e9ea493ff', 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/88fd14dc-5f13-4f25-af97-e95e9ea493ff (::1) 6.790000ms 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 200s 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 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 1393, in find_spec 200s File "", line 133, in _path_join 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/847fa67b-5497-4145-afa3-8516bb77370f 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/tmpy0rzh24c/runtime/kernel-e27cc8c9-d366-48bf-9103-ef9869f647bf.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36153 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36563 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: e27cc8c9-d366-48bf-9103-ef9869f647bf, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpy0rzh24c/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.220000ms 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.810000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 815291db-5fc1-4b92-8948-ab42df4fb21f 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 815291db-5fc1-4b92-8948-ab42df4fb21f 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/88fd14dc-5f13-4f25-af97-e95e9ea493ff (::1) 1.890000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e27cc8c9-d366-48bf-9103-ef9869f647bf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e27cc8c9-d366-48bf-9103-ef9869f647bf 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/847fa67b-5497-4145-afa3-8516bb77370f (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/847fa67b-5497-4145-afa3-8516bb77370f', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s 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 126, in 200s from . import _compiler, _parser 200s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 200s from ._casefix import _EXTRA_CASES 200s File "", line 1371, in _find_and_load 200s File "", line 1342, in _find_and_load_unlocked 200s File "", line 951, in _load_unlocked 200s File "", line 494, in _verbose_message 200s KeyboardInterrupt 200s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/282e57a8-c799-4153-8171-5ef161fd66ef 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/tmpy0rzh24c/runtime/kernel-695759c1-7649-4042-8c80-2072dc2630d7.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36671 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49155 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 695759c1-7649-4042-8c80-2072dc2630d7, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpy0rzh24c/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.910000ms 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.800000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e27cc8c9-d366-48bf-9103-ef9869f647bf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e27cc8c9-d366-48bf-9103-ef9869f647bf 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/847fa67b-5497-4145-afa3-8516bb77370f (::1) 1.170000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 695759c1-7649-4042-8c80-2072dc2630d7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 695759c1-7649-4042-8c80-2072dc2630d7 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/282e57a8-c799-4153-8171-5ef161fd66ef (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/282e57a8-c799-4153-8171-5ef161fd66ef', 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/282e57a8-c799-4153-8171-5ef161fd66ef (::1) 6.720000ms 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 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 143, in 200s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 200s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/enum.py", line 1830, in convert_class 200s contained._add_alias_(name) 200s ~~~~~~~~~~~~~~~~~~~~~^^^^^^ 200s File "/usr/lib/python3.14/enum.py", line 1207, in _add_alias_ 200s self.__class__._add_member_(name, self) 200s ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/enum.py", line 1083, in _add_member_ 200s setattr(cls, name, member) 200s ~~~~~~~^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/enum.py", line 821, in __setattr__ 200s super().__setattr__(name, value) 200s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 200s KeyboardInterrupt 200s _________________ AsyncSessionAPITest.test_create_file_session _________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e552f46c-d85d-45bf-b21a-92375b5fbd84 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/tmpy0rzh24c/runtime/kernel-8e41d552-6e2c-48f5-8366-ae85d70fb3c2.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46483 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37831 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e41d552-6e2c-48f5-8366-ae85d70fb3c2, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpy0rzh24c/notebooks/foo'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.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.590000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 695759c1-7649-4042-8c80-2072dc2630d7 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 695759c1-7649-4042-8c80-2072dc2630d7 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/282e57a8-c799-4153-8171-5ef161fd66ef (::1) 1.870000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 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/e552f46c-d85d-45bf-b21a-92375b5fbd84 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e552f46c-d85d-45bf-b21a-92375b5fbd84', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s 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 126, in 200s from . import _compiler, _parser 200s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 200s from . import _parser 200s File "/usr/lib/python3.14/re/_parser.py", line 75, in 200s class State: 200s ...<33 lines>... 200s 'lookbehind subpattern') 200s KeyboardInterrupt 200s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 200s 200s self = 200s 200s def test_create_with_kernel_id(self): 200s # create a new kernel 200s r = self.request('POST', 'api/kernels') 200s r.raise_for_status() 200s kernel = r.json() 200s 200s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 200s self.assertEqual(resp.status_code, 201) 200s newsession = resp.json() 200s self.assertIn('id', newsession) 200s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 200s self.assertEqual(newsession['kernel']['id'], kernel['id']) 200s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 200s 200s sessions = self.sess_api.list().json() 200s > self.assertEqual(sessions, [newsession]) 200s E AssertionError: Lists differ: [{'id': 'e552f46c-d85d-45bf-b21a-92375b5fbd84', 'p[553 chars]ne}}] != [{'id': 'a61ab27c-8bc1-4a72-851b-d8cabbb61979', 'p[279 chars]ne}}] 200s E 200s E First differing element 0: 200s E {'id': 'e552f46c-d85d-45bf-b21a-92375b5fbd84', 'p[218 chars]: 0}} 200s E {'id': 'a61ab27c-8bc1-4a72-851b-d8cabbb61979', 'p[278 chars]one}} 200s E 200s E First list contains 1 additional elements. 200s E First extra element 1: 200s E {'id': 'a61ab27c-8bc1-4a72-851b-d8cabbb61979', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '1a29d35a-f986-4ab7-90b0-7235c57b17e1', 'name': 'python3', 'last_activity': '2026-01-22T18:37:51.077921Z', '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/tmpy0rzh24c/runtime/kernel-1a29d35a-f986-4ab7-90b0-7235c57b17e1.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58777 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51059 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1a29d35a-f986-4ab7-90b0-7235c57b17e1, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.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) 4.530000ms 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.600000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e552f46c-d85d-45bf-b21a-92375b5fbd84 (::1) 0.730000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a29d35a-f986-4ab7-90b0-7235c57b17e1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a29d35a-f986-4ab7-90b0-7235c57b17e1 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 200s 200s @self.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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 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 10, in 200s from typing import TYPE_CHECKING, Any 200s File "/usr/lib/python3.14/typing.py", line 2061, in 200s @classmethod 200s ^^^^^^^^^^^ 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) 0.740000ms 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/tmpy0rzh24c/runtime/kernel-1d593be8-7af3-4ce5-9986-a683f1d839a6.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37497 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56537 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1d593be8-7af3-4ce5-9986-a683f1d839a6, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 200s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.240000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a29d35a-f986-4ab7-90b0-7235c57b17e1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a29d35a-f986-4ab7-90b0-7235c57b17e1 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 1.010000ms 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.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 (::1) 0.510000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d593be8-7af3-4ce5-9986-a683f1d839a6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d593be8-7af3-4ce5-9986-a683f1d839a6 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979', version='HTTP/1.1', remote_ip='::1') 200s Traceback (most recent call last): 200s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 200s result = await result 200s ^^^^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 200s future.result() 200s ~~~~~~~~~~~~~^^ 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 200s yield maybe_future(sm.delete_session(session_id)) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 200s yielded = self.gen.throw(exc) 200s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 200s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 200s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 200s value = future.result() 200s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 200s raise self._exception.with_traceback(self._exception_tb) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 200s result = coro.send(None) 200s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 200s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 200s raise km.ready.exception() # type: ignore[misc] 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 200s await kernel_awaitable 200s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 200s result = await obj 200s ^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 200s raise e 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 200s out = await method(self, *args, **kwargs) 200s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 200s await self._async_finish_shutdown(restart=restart) 200s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 200s await asyncio.wait_for( 200s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 200s ) 200s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 200s async with timeouts.timeout(timeout): 200s ~~~~~~~~~~~~~~~~^^^^^^^^^ 200s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 200s raise RuntimeError("Timeout should be used inside a task") 200s RuntimeError: Timeout should be used inside a task 200s WARNING NotebookApp:handlers.py:612 Unhandled error 200s --------------------------- Captured stderr teardown --------------------------- 200s 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 170, in 200s from nt import _path_splitroot_ex as splitroot 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 1396, in find_spec 200s File "", line 494, in _verbose_message 200s KeyboardInterrupt 200s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 200s 200s @self.addCleanup 200s def cleanup_sessions(): 200s for session in self.sess_api.list().json(): 200s > self.sess_api.delete(session['id']) 200s 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 200s return self._req('DELETE', id) 200s ^^^^^^^^^^^^^^^^^^^^^^^ 200s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 200s response.raise_for_status() 200s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 200s 200s self = 200s 200s def raise_for_status(self): 200s """Raises :class:`HTTPError`, if one occurred.""" 200s 200s http_error_msg = "" 200s if isinstance(self.reason, bytes): 200s # We attempt to decode utf-8 first because some servers 200s # choose to localize their reason strings. If the string 200s # isn't utf-8, we fall back to iso-8859-1 for all other 200s # encodings. (See PR #3538) 200s try: 200s reason = self.reason.decode("utf-8") 200s except UnicodeDecodeError: 200s reason = self.reason.decode("iso-8859-1") 200s else: 200s reason = self.reason 200s 200s if 400 <= self.status_code < 500: 200s http_error_msg = ( 200s f"{self.status_code} Client Error: {reason} for url: {self.url}" 200s ) 200s 200s elif 500 <= self.status_code < 600: 200s http_error_msg = ( 200s f"{self.status_code} Server Error: {reason} for url: {self.url}" 200s ) 200s 200s if http_error_msg: 200s > raise HTTPError(http_error_msg, response=self) 200s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979 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) 0.730000ms 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/tmpy0rzh24c/runtime/kernel-079f595c-6fa5-46a3-a695-83d99f1d452c.json'] 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46271 200s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50429 200s INFO NotebookApp:kernelmanager.py:179 Kernel started: 079f595c-6fa5-46a3-a695-83d99f1d452c, name: python3 200s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpy0rzh24c/notebooks/foo'} 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1d593be8-7af3-4ce5-9986-a683f1d839a6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d593be8-7af3-4ce5-9986-a683f1d839a6 200s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 15.980000ms 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.700000ms 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.710000ms 200s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 200s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 079f595c-6fa5-46a3-a695-83d99f1d452c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 079f595c-6fa5-46a3-a695-83d99f1d452c 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 200s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a61ab27c-8bc1-4a72-851b-d8cabbb61979', 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/a61ab27c-8bc1-4a72-851b-d8cabbb61979 (::1) 6.820000ms 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 5, in 200s import re 200s File "/usr/lib/python3.14/re/__init__.py", line 126, in 200s from . import _compiler, _parser 200s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 200s from . import _parser 200s File "/usr/lib/python3.14/re/_parser.py", line 15, in 200s from ._constants import * 200s File "/usr/lib/python3.14/re/_constants.py", line 23, in 200s class PatternError(Exception): 200s ...<29 lines>... 200s super().__init__(msg) 200s KeyboardInterrupt 200s ---------------------------- Captured log teardown ----------------------------- 200s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a29d35a-f986-4ab7-90b0-7235c57b17e1 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 079f595c-6fa5-46a3-a695-83d99f1d452c 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e27cc8c9-d366-48bf-9103-ef9869f647bf 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1d593be8-7af3-4ce5-9986-a683f1d839a6 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e41d552-6e2c-48f5-8366-ae85d70fb3c2 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 815291db-5fc1-4b92-8948-ab42df4fb21f 200s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 695759c1-7649-4042-8c80-2072dc2630d7 200s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 200s =============================== warnings summary =============================== 200s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 200s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 200s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 200s return LooseVersion(v) >= LooseVersion(check) 200s 200s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 200s services/kernels/tests/test_kernels_api.py: 72 warnings 200s services/sessions/tests/test_sessions_api.py: 88 warnings 200s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 200s dt = unaware(*args, **kwargs) 200s 200s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 200s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 200s pytestmark = pytest.mark.integration_tests 200s 200s services/kernels/tests/test_kernels_api.py: 6 warnings 200s services/sessions/tests/test_sessions_api.py: 6 warnings 200s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 200s policy = events.get_event_loop_policy() 200s 200s services/kernels/tests/test_kernels_api.py: 24 warnings 200s services/sessions/tests/test_sessions_api.py: 19 warnings 200s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 200s loop = events.get_event_loop_policy().get_event_loop() 200s 200s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 200s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 200s loop.make_current() 200s 200s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 200s /usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py:45: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 200s @default('kernel_manager_class') 200s Enable tracemalloc to get traceback where the object was allocated. 200s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 200s 200s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 200s =========================== short test summary info ============================ 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 200s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 200s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 200s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 200s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 200s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 200s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 200s ========== 23 failed, 307 deselected, 221 warnings, 4 errors in 6.47s ========== 200s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 200s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 201s autopkgtest [18:37:52]: test pytest: -----------------------] 201s pytest FAIL non-zero exit status 1 201s autopkgtest [18:37:52]: test pytest: - - - - - - - - - - results - - - - - - - - - - 202s autopkgtest [18:37:53]: @@@@@@@@@@@@@@@@@@@@ summary 202s pytest FAIL non-zero exit status 1