0s autopkgtest [06:00:22]: starting date and time: 2026-01-30 06:00:22+0000 0s autopkgtest [06:00:22]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [06:00:22]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.neeaiy06/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:send2trash --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=send2trash/1.8.3-1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-s390x-14.secgroup --name adt-resolute-s390x-jupyter-notebook-20260130-060022-juju-7f2275-prod-proposed-migration-environment-15-1cb5e758-0601-49c6-b559-896aed024066 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-s390x-jupyter-notebook-20260130-060022-juju-7f2275-prod-proposed-migration-environment-15-1cb5e758-0601-49c6-b559-896aed024066 from image adt/ubuntu-resolute-s390x-server-20260129.img (UUID 0fdc3f45-c7c7-4a2c-aa6d-edc1dbbf6141)... 54s autopkgtest [06:01:16]: testbed dpkg architecture: s390x 54s autopkgtest [06:01:16]: testbed apt version: 3.1.14 54s autopkgtest [06:01:16]: @@@@@@@@@@@@@@@@@@@@ test bed setup 54s autopkgtest [06:01:16]: testbed release detected to be: None 55s autopkgtest [06:01:17]: updating testbed package index (apt update) 55s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 55s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 55s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 55s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 55s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1600 kB] 55s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [103 kB] 55s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [33.0 kB] 55s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 55s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [117 kB] 55s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1102 kB] 55s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [12.0 kB] 56s Fetched 3095 kB in 1s (5339 kB/s) 57s Reading package lists... 58s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 58s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 58s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 58s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 60s Reading package lists... 60s Reading package lists... 61s Building dependency tree... 61s Reading state information... 61s Calculating upgrade... 61s The following packages will be upgraded: 61s bzip2 gcc-15-base inetutils-telnet libatomic1 libbz2-1.0 libgcc-s1 61s libsgutils2-1.48 libsqlite3-0 libstdc++6 sg3-utils sg3-utils-udev telnet 61s 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s Need to get 3103 kB of archives. 61s After this operation, 3072 B of additional disk space will be used. 61s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libatomic1 s390x 15.2.0-12ubuntu1 [9486 B] 62s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libstdc++6 s390x 15.2.0-12ubuntu1 [907 kB] 62s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15-base s390x 15.2.0-12ubuntu1 [59.6 kB] 62s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x libgcc-s1 s390x 15.2.0-12ubuntu1 [35.7 kB] 62s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x bzip2 s390x 1.0.8-6build2 [35.2 kB] 62s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x libbz2-1.0 s390x 1.0.8-6build2 [41.6 kB] 62s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libsqlite3-0 s390x 3.46.1-9 [748 kB] 62s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x inetutils-telnet s390x 2:2.7-2ubuntu1 [112 kB] 62s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x telnet all 0.17+2.7-2ubuntu1 [3636 B] 62s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libsgutils2-1.48 s390x 1.48-3ubuntu2 [120 kB] 62s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x sg3-utils s390x 1.48-3ubuntu2 [1025 kB] 62s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x sg3-utils-udev all 1.48-3ubuntu2 [6610 B] 62s dpkg-preconfigure: unable to re-open stdin: No such file or directory 62s Fetched 3103 kB in 0s (10.8 MB/s) 62s (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 ... 87720 files and directories currently installed.) 62s Preparing to unpack .../libatomic1_15.2.0-12ubuntu1_s390x.deb ... 62s Unpacking libatomic1:s390x (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 62s Preparing to unpack .../libstdc++6_15.2.0-12ubuntu1_s390x.deb ... 62s Unpacking libstdc++6:s390x (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 62s Preparing to unpack .../gcc-15-base_15.2.0-12ubuntu1_s390x.deb ... 62s Unpacking gcc-15-base:s390x (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 62s Setting up gcc-15-base:s390x (15.2.0-12ubuntu1) ... 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 ... 87720 files and directories currently installed.) 63s Preparing to unpack .../libgcc-s1_15.2.0-12ubuntu1_s390x.deb ... 63s Unpacking libgcc-s1:s390x (15.2.0-12ubuntu1) over (15.2.0-11ubuntu1) ... 63s Setting up libgcc-s1:s390x (15.2.0-12ubuntu1) ... 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 ... 87720 files and directories currently installed.) 63s Preparing to unpack .../bzip2_1.0.8-6build2_s390x.deb ... 63s Unpacking bzip2 (1.0.8-6build2) over (1.0.8-6build1) ... 63s Preparing to unpack .../libbz2-1.0_1.0.8-6build2_s390x.deb ... 63s Unpacking libbz2-1.0:s390x (1.0.8-6build2) over (1.0.8-6build1) ... 63s Setting up libbz2-1.0:s390x (1.0.8-6build2) ... 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 ... 87720 files and directories currently installed.) 63s Preparing to unpack .../0-libsqlite3-0_3.46.1-9_s390x.deb ... 63s Unpacking libsqlite3-0:s390x (3.46.1-9) over (3.46.1-8) ... 63s Preparing to unpack .../1-inetutils-telnet_2%3a2.7-2ubuntu1_s390x.deb ... 63s Unpacking inetutils-telnet (2:2.7-2ubuntu1) over (2:2.6-4ubuntu1) ... 63s Preparing to unpack .../2-telnet_0.17+2.7-2ubuntu1_all.deb ... 63s Unpacking telnet (0.17+2.7-2ubuntu1) over (0.17+2.6-4ubuntu1) ... 63s Preparing to unpack .../3-libsgutils2-1.48_1.48-3ubuntu2_s390x.deb ... 63s Unpacking libsgutils2-1.48:s390x (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 63s Preparing to unpack .../4-sg3-utils_1.48-3ubuntu2_s390x.deb ... 63s Unpacking sg3-utils (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 63s Preparing to unpack .../5-sg3-utils-udev_1.48-3ubuntu2_all.deb ... 63s Unpacking sg3-utils-udev (1.48-3ubuntu2) over (1.48-3ubuntu1) ... 63s Setting up libsqlite3-0:s390x (3.46.1-9) ... 63s Setting up inetutils-telnet (2:2.7-2ubuntu1) ... 63s Setting up libsgutils2-1.48:s390x (1.48-3ubuntu2) ... 63s Setting up bzip2 (1.0.8-6build2) ... 63s Setting up libatomic1:s390x (15.2.0-12ubuntu1) ... 63s Setting up libstdc++6:s390x (15.2.0-12ubuntu1) ... 63s Setting up sg3-utils (1.48-3ubuntu2) ... 63s Setting up telnet (0.17+2.7-2ubuntu1) ... 63s Setting up sg3-utils-udev (1.48-3ubuntu2) ... 63s update-initramfs: deferring update (trigger activated) 63s Processing triggers for libc-bin (2.42-2ubuntu4) ... 63s Processing triggers for man-db (2.13.1-1) ... 64s Processing triggers for initramfs-tools (0.150ubuntu7) ... 64s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 72s Using config file '/etc/zipl.conf' 72s Building bootmap in '/boot' 72s Adding IPL section 'ubuntu' (default) 72s Preparing boot device: vda. 72s Done. 73s autopkgtest [06:01:35]: upgrading testbed (apt dist-upgrade and autopurge) 73s Reading package lists... 73s Building dependency tree... 73s Reading state information... 73s Calculating upgrade... 73s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 73s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Solving dependencies... 74s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 74s autopkgtest [06:01:36]: rebooting testbed after setup commands that affected boot 106s autopkgtest [06:02:08]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP Mon Jan 12 15:39:23 UTC 2026 108s autopkgtest [06:02:10]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 111s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 111s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 111s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 111s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 111s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 111s gpgv: Can't check signature: No public key 111s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 111s autopkgtest [06:02:13]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 112s autopkgtest [06:02:14]: build not needed 112s autopkgtest [06:02:14]: test pytest: preparing testbed 113s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Solving dependencies... 113s The following NEW packages will be installed: 113s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 113s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 113s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 113s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 113s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 113s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 113s libpython3.14 libpython3.14-minimal libpython3.14-stdlib libsodium23 113s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 113s python-notebook-doc python-tinycss2-common python3-all python3-argon2 113s python3-argon2-cffi-bindings python3-astroid python3-asttokens 113s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 113s python3-debugpy python3-decorator python3-defusedxml python3-executing 113s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 113s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 113s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 113s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 113s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 113s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 113s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 113s python3-pytest python3-requests-unixsocket python3-send2trash 113s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 113s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 113s python3-webencodings python3-zmq python3.14 python3.14-minimal 113s sphinx-rtd-theme-common 114s 0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 41.2 MB of archives. 114s After this operation, 198 MB of additional disk space will be used. 114s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-lato all 2.015-1build1 [2779 kB] 114s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-minimal s390x 3.14.2-1 [917 kB] 115s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14-minimal s390x 3.14.2-1 [2510 kB] 115s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 115s Get:5 http://ftpmaster.internal/ubuntu resolute/universe s390x fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 115s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 115s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libbabeltrace1 s390x 1.5.11-5 [170 kB] 115s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-stdlib s390x 3.14.2-1 [2373 kB] 115s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14 s390x 3.14.2-1 [2651 kB] 115s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 115s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight4t64 s390x 3.1.9-4.3build2 [274 kB] 115s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x gdb s390x 17.1-1ubuntu2 [4042 kB] 116s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x python3-platformdirs all 4.5.1-1 [17.1 kB] 116s Get:14 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 116s Get:15 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-core all 5.9.1-1 [28.9 kB] 116s Get:16 http://ftpmaster.internal/ubuntu resolute/universe s390x jupyter-core all 5.9.1-1 [6938 B] 116s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 116s Get:18 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 116s Get:19 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 116s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 116s Get:21 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 116s Get:22 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 116s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-es6-promise all 4.2.8-12 [14.1 kB] 116s Get:24 http://ftpmaster.internal/ubuntu resolute/universe s390x node-jed all 1.1.1-4 [15.2 kB] 116s Get:25 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jed all 1.1.1-4 [2584 B] 116s Get:26 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 116s Get:27 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 116s Get:28 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 116s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 116s Get:30 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-moment all 2.29.4+ds-1 [147 kB] 116s Get:31 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 116s Get:32 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-requirejs-text all 2.0.12-2 [9732 B] 117s Get:33 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-text-encoding all 0.7.0-5 [140 kB] 117s Get:34 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-xterm all 5.3.0-4 [475 kB] 117s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x python3-tornado s390x 6.5.4-0.1 [306 kB] 117s Get:36 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-terminado all 0.18.1-1 [13.2 kB] 117s Get:37 http://ftpmaster.internal/ubuntu resolute/main s390x libargon2-1 s390x 0~20190702+dfsg-5 [52.8 kB] 117s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x python3-ply all 3.11-10 [45.9 kB] 117s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x python3-pycparser all 2.23-2 [77.0 kB] 117s Get:40 http://ftpmaster.internal/ubuntu resolute/main s390x python3-cffi all 2.0.0-2 [75.5 kB] 117s Get:41 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-argon2-cffi-bindings s390x 25.1.0-2 [15.4 kB] 117s Get:42 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-argon2 s390x 25.1.0-2 [13.8 kB] 117s Get:43 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-comm all 0.2.1-1build1 [7148 B] 117s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14 s390x 3.14.2-1 [816 kB] 117s Get:45 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-coverage s390x 7.8.2+dfsg1-1ubuntu1 [160 kB] 117s Get:46 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-debugpy s390x 1.8.19+ds-1ubuntu1 [968 kB] 117s Get:47 http://ftpmaster.internal/ubuntu resolute/main s390x python3-decorator all 5.2.1-2 [28.1 kB] 117s Get:48 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-parso all 0.8.5-1 [68.0 kB] 117s Get:49 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 117s Get:50 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jedi all 0.19.1+ds1-1build1 [694 kB] 117s Get:51 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-matplotlib-inline all 0.2.1-1 [9462 B] 117s Get:52 http://ftpmaster.internal/ubuntu resolute/main s390x python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 117s Get:53 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-prompt-toolkit all 3.0.52-2 [258 kB] 117s Get:54 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-astroid all 4.0.2-1ubuntu1 [172 kB] 117s Get:55 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-asttokens all 3.0.1-1 [20.7 kB] 117s Get:56 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-executing all 2.2.1-0.1 [26.2 kB] 117s Get:57 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pure-eval all 0.2.3-1 [11.4 kB] 117s Get:58 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-stack-data all 0.6.3-3 [22.2 kB] 117s Get:59 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipython all 8.35.0-2 [575 kB] 117s Get:60 http://ftpmaster.internal/ubuntu resolute/main s390x python3-psutil s390x 7.1.0-1ubuntu1 [191 kB] 117s Get:61 http://ftpmaster.internal/ubuntu resolute/universe s390x libnorm1t64 s390x 1.5.9+dfsg-4 [156 kB] 117s Get:62 http://ftpmaster.internal/ubuntu resolute/universe s390x libpgm-5.3-0t64 s390x 5.3.128~dfsg-2.1build2 [169 kB] 117s Get:63 http://ftpmaster.internal/ubuntu resolute/main s390x libsodium23 s390x 1.0.18-2 [138 kB] 117s Get:64 http://ftpmaster.internal/ubuntu resolute/universe s390x libzmq5 s390x 4.3.5-1build3 [252 kB] 117s Get:65 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-zmq s390x 27.1.0-1 [248 kB] 117s Get:66 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-client all 8.7.0-1 [78.5 kB] 117s Get:67 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nest-asyncio all 1.6.0-1 [6686 B] 117s Get:68 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipykernel all 6.30.1-1 [82.8 kB] 117s Get:69 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipython-genutils all 0.2.0-7 [22.0 kB] 117s Get:70 http://ftpmaster.internal/ubuntu resolute/universe s390x python-tinycss2-common all 1.5.1-1 [47.3 kB] 117s Get:71 http://ftpmaster.internal/ubuntu resolute/main s390x python3-webencodings all 0.5.1-5build1 [11.7 kB] 117s Get:72 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-tinycss2 all 1.5.1-1 [23.3 kB] 117s Get:73 http://ftpmaster.internal/ubuntu resolute/main s390x python3-html5lib all 1.2-3 [90.6 kB] 117s Get:74 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-bleach all 6.3.0-1 [44.2 kB] 117s Get:75 http://ftpmaster.internal/ubuntu resolute/main s390x python3-soupsieve all 2.8.3-1 [34.0 kB] 117s Get:76 http://ftpmaster.internal/ubuntu resolute/main s390x python3-bs4 all 4.14.3-2build1 [84.8 kB] 117s Get:77 http://ftpmaster.internal/ubuntu resolute/main s390x python3-defusedxml all 0.7.1-3build1 [42.4 kB] 117s Get:78 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 117s Get:79 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-mistune all 3.1.4-1 [35.0 kB] 117s Get:80 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-fastjsonschema all 2.21.1-1 [20.4 kB] 117s Get:81 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbformat all 5.10.4-1 [39.2 kB] 117s Get:82 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbclient all 0.10.4-1 [22.6 kB] 117s Get:83 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pandocfilters all 1.5.1-1 [23.6 kB] 117s Get:84 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbconvert all 7.16.6-1 [140 kB] 117s Get:85 http://ftpmaster.internal/ubuntu resolute/main s390x python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 117s Get:86 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x python3-send2trash all 1.8.3-1build1 [14.8 kB] 117s Get:87 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 118s Get:88 http://ftpmaster.internal/ubuntu resolute/universe s390x jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 118s Get:89 http://ftpmaster.internal/ubuntu resolute/main s390x sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 118s Get:90 http://ftpmaster.internal/ubuntu resolute/universe s390x python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 118s Get:91 http://ftpmaster.internal/ubuntu resolute/main s390x python3-all s390x 3.13.9-3 [890 B] 118s Get:92 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-2 [6962 B] 118s Get:93 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-2 [21.1 kB] 118s Get:94 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest all 9.0.2-2 [277 kB] 118s Get:95 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-requests-unixsocket all 1.0.1-1 [8620 B] 118s Fetched 41.2 MB in 5s (8336 kB/s) 118s Selecting previously unselected package fonts-lato. 119s (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 ... 87720 files and directories currently installed.) 119s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 119s Unpacking fonts-lato (2.015-1build1) ... 119s Selecting previously unselected package libpython3.14-minimal:s390x. 119s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_s390x.deb ... 119s Unpacking libpython3.14-minimal:s390x (3.14.2-1) ... 119s Selecting previously unselected package python3.14-minimal. 119s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_s390x.deb ... 119s Unpacking python3.14-minimal (3.14.2-1) ... 119s Selecting previously unselected package fonts-font-awesome. 119s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 119s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 119s Selecting previously unselected package fonts-glyphicons-halflings. 119s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 119s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 119s Selecting previously unselected package fonts-mathjax. 120s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 120s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 120s Selecting previously unselected package libbabeltrace1:s390x. 120s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_s390x.deb ... 120s Unpacking libbabeltrace1:s390x (1.5.11-5) ... 120s Selecting previously unselected package libpython3.14-stdlib:s390x. 120s Preparing to unpack .../07-libpython3.14-stdlib_3.14.2-1_s390x.deb ... 120s Unpacking libpython3.14-stdlib:s390x (3.14.2-1) ... 120s Selecting previously unselected package libpython3.14:s390x. 120s Preparing to unpack .../08-libpython3.14_3.14.2-1_s390x.deb ... 120s Unpacking libpython3.14:s390x (3.14.2-1) ... 120s Selecting previously unselected package libsource-highlight-common. 120s Preparing to unpack .../09-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 120s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 120s Selecting previously unselected package libsource-highlight4t64:s390x. 120s Preparing to unpack .../10-libsource-highlight4t64_3.1.9-4.3build2_s390x.deb ... 120s Unpacking libsource-highlight4t64:s390x (3.1.9-4.3build2) ... 120s Selecting previously unselected package gdb. 120s Preparing to unpack .../11-gdb_17.1-1ubuntu2_s390x.deb ... 120s Unpacking gdb (17.1-1ubuntu2) ... 120s Selecting previously unselected package python3-platformdirs. 120s Preparing to unpack .../12-python3-platformdirs_4.5.1-1_all.deb ... 120s Unpacking python3-platformdirs (4.5.1-1) ... 120s Selecting previously unselected package python3-traitlets. 120s Preparing to unpack .../13-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 120s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 120s Selecting previously unselected package python3-jupyter-core. 120s Preparing to unpack .../14-python3-jupyter-core_5.9.1-1_all.deb ... 120s Unpacking python3-jupyter-core (5.9.1-1) ... 120s Selecting previously unselected package jupyter-core. 120s Preparing to unpack .../15-jupyter-core_5.9.1-1_all.deb ... 120s Unpacking jupyter-core (5.9.1-1) ... 120s Selecting previously unselected package libjs-underscore. 120s Preparing to unpack .../16-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 120s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 120s Selecting previously unselected package libjs-backbone. 120s Preparing to unpack .../17-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 120s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 120s Selecting previously unselected package libjs-bootstrap. 120s Preparing to unpack .../18-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 120s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 120s Selecting previously unselected package libjs-jquery. 120s Preparing to unpack .../19-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 120s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 120s Selecting previously unselected package libjs-bootstrap-tour. 120s Preparing to unpack .../20-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 120s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 121s Selecting previously unselected package libjs-codemirror. 121s Preparing to unpack .../21-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 121s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 121s Selecting previously unselected package libjs-es6-promise. 121s Preparing to unpack .../22-libjs-es6-promise_4.2.8-12_all.deb ... 121s Unpacking libjs-es6-promise (4.2.8-12) ... 121s Selecting previously unselected package node-jed. 121s Preparing to unpack .../23-node-jed_1.1.1-4_all.deb ... 121s Unpacking node-jed (1.1.1-4) ... 121s Selecting previously unselected package libjs-jed. 121s Preparing to unpack .../24-libjs-jed_1.1.1-4_all.deb ... 121s Unpacking libjs-jed (1.1.1-4) ... 121s Selecting previously unselected package libjs-jquery-typeahead. 121s Preparing to unpack .../25-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 121s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 121s Selecting previously unselected package libjs-jquery-ui. 121s Preparing to unpack .../26-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 121s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 121s Selecting previously unselected package libjs-marked. 121s Preparing to unpack .../27-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 121s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 121s Selecting previously unselected package libjs-mathjax. 121s Preparing to unpack .../28-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 121s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 121s Selecting previously unselected package libjs-moment. 121s Preparing to unpack .../29-libjs-moment_2.29.4+ds-1_all.deb ... 121s Unpacking libjs-moment (2.29.4+ds-1) ... 121s Selecting previously unselected package libjs-requirejs. 122s Preparing to unpack .../30-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 122s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 122s Selecting previously unselected package libjs-requirejs-text. 122s Preparing to unpack .../31-libjs-requirejs-text_2.0.12-2_all.deb ... 122s Unpacking libjs-requirejs-text (2.0.12-2) ... 122s Selecting previously unselected package libjs-text-encoding. 122s Preparing to unpack .../32-libjs-text-encoding_0.7.0-5_all.deb ... 122s Unpacking libjs-text-encoding (0.7.0-5) ... 122s Selecting previously unselected package libjs-xterm. 122s Preparing to unpack .../33-libjs-xterm_5.3.0-4_all.deb ... 122s Unpacking libjs-xterm (5.3.0-4) ... 122s Selecting previously unselected package python3-tornado. 122s Preparing to unpack .../34-python3-tornado_6.5.4-0.1_s390x.deb ... 122s Unpacking python3-tornado (6.5.4-0.1) ... 122s Selecting previously unselected package python3-terminado. 122s Preparing to unpack .../35-python3-terminado_0.18.1-1_all.deb ... 122s Unpacking python3-terminado (0.18.1-1) ... 122s Selecting previously unselected package libargon2-1:s390x. 122s Preparing to unpack .../36-libargon2-1_0~20190702+dfsg-5_s390x.deb ... 122s Unpacking libargon2-1:s390x (0~20190702+dfsg-5) ... 122s Selecting previously unselected package python3-ply. 122s Preparing to unpack .../37-python3-ply_3.11-10_all.deb ... 122s Unpacking python3-ply (3.11-10) ... 122s Selecting previously unselected package python3-pycparser. 122s Preparing to unpack .../38-python3-pycparser_2.23-2_all.deb ... 122s Unpacking python3-pycparser (2.23-2) ... 122s Selecting previously unselected package python3-cffi. 122s Preparing to unpack .../39-python3-cffi_2.0.0-2_all.deb ... 122s Unpacking python3-cffi (2.0.0-2) ... 122s Selecting previously unselected package python3-argon2-cffi-bindings. 122s Preparing to unpack .../40-python3-argon2-cffi-bindings_25.1.0-2_s390x.deb ... 122s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 122s Selecting previously unselected package python3-argon2. 122s Preparing to unpack .../41-python3-argon2_25.1.0-2_s390x.deb ... 122s Unpacking python3-argon2 (25.1.0-2) ... 122s Selecting previously unselected package python3-comm. 122s Preparing to unpack .../42-python3-comm_0.2.1-1build1_all.deb ... 122s Unpacking python3-comm (0.2.1-1build1) ... 122s Selecting previously unselected package python3.14. 122s Preparing to unpack .../43-python3.14_3.14.2-1_s390x.deb ... 122s Unpacking python3.14 (3.14.2-1) ... 123s Selecting previously unselected package python3-coverage. 123s Preparing to unpack .../44-python3-coverage_7.8.2+dfsg1-1ubuntu1_s390x.deb ... 123s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 123s Selecting previously unselected package python3-debugpy. 123s Preparing to unpack .../45-python3-debugpy_1.8.19+ds-1ubuntu1_s390x.deb ... 123s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 123s Selecting previously unselected package python3-decorator. 123s Preparing to unpack .../46-python3-decorator_5.2.1-2_all.deb ... 123s Unpacking python3-decorator (5.2.1-2) ... 123s Selecting previously unselected package python3-parso. 123s Preparing to unpack .../47-python3-parso_0.8.5-1_all.deb ... 123s Unpacking python3-parso (0.8.5-1) ... 123s Selecting previously unselected package python3-typeshed. 123s Preparing to unpack .../48-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 123s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 124s Selecting previously unselected package python3-jedi. 124s Preparing to unpack .../49-python3-jedi_0.19.1+ds1-1build1_all.deb ... 124s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 124s Selecting previously unselected package python3-matplotlib-inline. 124s Preparing to unpack .../50-python3-matplotlib-inline_0.2.1-1_all.deb ... 124s Unpacking python3-matplotlib-inline (0.2.1-1) ... 124s Selecting previously unselected package python3-wcwidth. 124s Preparing to unpack .../51-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 124s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 124s Selecting previously unselected package python3-prompt-toolkit. 124s Preparing to unpack .../52-python3-prompt-toolkit_3.0.52-2_all.deb ... 124s Unpacking python3-prompt-toolkit (3.0.52-2) ... 124s Selecting previously unselected package python3-astroid. 124s Preparing to unpack .../53-python3-astroid_4.0.2-1ubuntu1_all.deb ... 124s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 124s Selecting previously unselected package python3-asttokens. 124s Preparing to unpack .../54-python3-asttokens_3.0.1-1_all.deb ... 124s Unpacking python3-asttokens (3.0.1-1) ... 124s Selecting previously unselected package python3-executing. 124s Preparing to unpack .../55-python3-executing_2.2.1-0.1_all.deb ... 124s Unpacking python3-executing (2.2.1-0.1) ... 124s Selecting previously unselected package python3-pure-eval. 124s Preparing to unpack .../56-python3-pure-eval_0.2.3-1_all.deb ... 124s Unpacking python3-pure-eval (0.2.3-1) ... 124s Selecting previously unselected package python3-stack-data. 124s Preparing to unpack .../57-python3-stack-data_0.6.3-3_all.deb ... 124s Unpacking python3-stack-data (0.6.3-3) ... 124s Selecting previously unselected package python3-ipython. 124s Preparing to unpack .../58-python3-ipython_8.35.0-2_all.deb ... 124s Unpacking python3-ipython (8.35.0-2) ... 124s Selecting previously unselected package python3-psutil. 124s Preparing to unpack .../59-python3-psutil_7.1.0-1ubuntu1_s390x.deb ... 124s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 124s Selecting previously unselected package libnorm1t64:s390x. 124s Preparing to unpack .../60-libnorm1t64_1.5.9+dfsg-4_s390x.deb ... 124s Unpacking libnorm1t64:s390x (1.5.9+dfsg-4) ... 125s Selecting previously unselected package libpgm-5.3-0t64:s390x. 125s Preparing to unpack .../61-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_s390x.deb ... 125s Unpacking libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build2) ... 125s Selecting previously unselected package libsodium23:s390x. 125s Preparing to unpack .../62-libsodium23_1.0.18-2_s390x.deb ... 125s Unpacking libsodium23:s390x (1.0.18-2) ... 125s Selecting previously unselected package libzmq5:s390x. 125s Preparing to unpack .../63-libzmq5_4.3.5-1build3_s390x.deb ... 125s Unpacking libzmq5:s390x (4.3.5-1build3) ... 125s Selecting previously unselected package python3-zmq. 125s Preparing to unpack .../64-python3-zmq_27.1.0-1_s390x.deb ... 125s Unpacking python3-zmq (27.1.0-1) ... 125s Selecting previously unselected package python3-jupyter-client. 125s Preparing to unpack .../65-python3-jupyter-client_8.7.0-1_all.deb ... 125s Unpacking python3-jupyter-client (8.7.0-1) ... 125s Selecting previously unselected package python3-nest-asyncio. 125s Preparing to unpack .../66-python3-nest-asyncio_1.6.0-1_all.deb ... 125s Unpacking python3-nest-asyncio (1.6.0-1) ... 125s Selecting previously unselected package python3-ipykernel. 125s Preparing to unpack .../67-python3-ipykernel_6.30.1-1_all.deb ... 125s Unpacking python3-ipykernel (6.30.1-1) ... 125s Selecting previously unselected package python3-ipython-genutils. 125s Preparing to unpack .../68-python3-ipython-genutils_0.2.0-7_all.deb ... 125s Unpacking python3-ipython-genutils (0.2.0-7) ... 125s Selecting previously unselected package python-tinycss2-common. 125s Preparing to unpack .../69-python-tinycss2-common_1.5.1-1_all.deb ... 125s Unpacking python-tinycss2-common (1.5.1-1) ... 125s Selecting previously unselected package python3-webencodings. 125s Preparing to unpack .../70-python3-webencodings_0.5.1-5build1_all.deb ... 125s Unpacking python3-webencodings (0.5.1-5build1) ... 125s Selecting previously unselected package python3-tinycss2. 125s Preparing to unpack .../71-python3-tinycss2_1.5.1-1_all.deb ... 125s Unpacking python3-tinycss2 (1.5.1-1) ... 125s Selecting previously unselected package python3-html5lib. 125s Preparing to unpack .../72-python3-html5lib_1.2-3_all.deb ... 125s Unpacking python3-html5lib (1.2-3) ... 125s Selecting previously unselected package python3-bleach. 125s Preparing to unpack .../73-python3-bleach_6.3.0-1_all.deb ... 125s Unpacking python3-bleach (6.3.0-1) ... 125s Selecting previously unselected package python3-soupsieve. 125s Preparing to unpack .../74-python3-soupsieve_2.8.3-1_all.deb ... 125s Unpacking python3-soupsieve (2.8.3-1) ... 125s Selecting previously unselected package python3-bs4. 125s Preparing to unpack .../75-python3-bs4_4.14.3-2build1_all.deb ... 125s Unpacking python3-bs4 (4.14.3-2build1) ... 125s Selecting previously unselected package python3-defusedxml. 125s Preparing to unpack .../76-python3-defusedxml_0.7.1-3build1_all.deb ... 125s Unpacking python3-defusedxml (0.7.1-3build1) ... 125s Selecting previously unselected package python3-jupyterlab-pygments. 125s Preparing to unpack .../77-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 125s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 125s Selecting previously unselected package python3-mistune. 125s Preparing to unpack .../78-python3-mistune_3.1.4-1_all.deb ... 125s Unpacking python3-mistune (3.1.4-1) ... 125s Selecting previously unselected package python3-fastjsonschema. 125s Preparing to unpack .../79-python3-fastjsonschema_2.21.1-1_all.deb ... 125s Unpacking python3-fastjsonschema (2.21.1-1) ... 125s Selecting previously unselected package python3-nbformat. 125s Preparing to unpack .../80-python3-nbformat_5.10.4-1_all.deb ... 125s Unpacking python3-nbformat (5.10.4-1) ... 125s Selecting previously unselected package python3-nbclient. 125s Preparing to unpack .../81-python3-nbclient_0.10.4-1_all.deb ... 125s Unpacking python3-nbclient (0.10.4-1) ... 125s Selecting previously unselected package python3-pandocfilters. 125s Preparing to unpack .../82-python3-pandocfilters_1.5.1-1_all.deb ... 125s Unpacking python3-pandocfilters (1.5.1-1) ... 125s Selecting previously unselected package python3-nbconvert. 125s Preparing to unpack .../83-python3-nbconvert_7.16.6-1_all.deb ... 125s Unpacking python3-nbconvert (7.16.6-1) ... 125s Selecting previously unselected package python3-prometheus-client. 125s Preparing to unpack .../84-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 125s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 125s Selecting previously unselected package python3-send2trash. 125s Preparing to unpack .../85-python3-send2trash_1.8.3-1build1_all.deb ... 125s Unpacking python3-send2trash (1.8.3-1build1) ... 125s Selecting previously unselected package python3-notebook. 125s Preparing to unpack .../86-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 125s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 125s Selecting previously unselected package jupyter-notebook. 125s Preparing to unpack .../87-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 125s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 125s Selecting previously unselected package sphinx-rtd-theme-common. 125s Preparing to unpack .../88-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 125s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 125s Selecting previously unselected package python-notebook-doc. 125s Preparing to unpack .../89-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 125s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 125s Selecting previously unselected package python3-all. 125s Preparing to unpack .../90-python3-all_3.13.9-3_s390x.deb ... 125s Unpacking python3-all (3.13.9-3) ... 125s Selecting previously unselected package python3-iniconfig. 125s Preparing to unpack .../91-python3-iniconfig_2.1.0-2_all.deb ... 125s Unpacking python3-iniconfig (2.1.0-2) ... 125s Selecting previously unselected package python3-pluggy. 125s Preparing to unpack .../92-python3-pluggy_1.6.0-2_all.deb ... 125s Unpacking python3-pluggy (1.6.0-2) ... 125s Selecting previously unselected package python3-pytest. 125s Preparing to unpack .../93-python3-pytest_9.0.2-2_all.deb ... 125s Unpacking python3-pytest (9.0.2-2) ... 126s Selecting previously unselected package python3-requests-unixsocket. 126s Preparing to unpack .../94-python3-requests-unixsocket_1.0.1-1_all.deb ... 126s Unpacking python3-requests-unixsocket (1.0.1-1) ... 126s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 126s Setting up python3-iniconfig (2.1.0-2) ... 126s Setting up python3-tornado (6.5.4-0.1) ... 128s Setting up libnorm1t64:s390x (1.5.9+dfsg-4) ... 128s Setting up python3-pure-eval (0.2.3-1) ... 128s Setting up python3-send2trash (1.8.3-1build1) ... 129s Setting up fonts-lato (2.015-1build1) ... 129s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 129s Setting up libsodium23:s390x (1.0.18-2) ... 129s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 129s Setting up libjs-requirejs-text (2.0.12-2) ... 129s Setting up python3-parso (0.8.5-1) ... 129s Setting up python3-defusedxml (0.7.1-3build1) ... 130s Setting up python3-ipython-genutils (0.2.0-7) ... 130s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 130s Setting up libargon2-1:s390x (0~20190702+dfsg-5) ... 130s Setting up python3-ply (3.11-10) ... 130s Setting up libpython3.14-minimal:s390x (3.14.2-1) ... 130s Setting up libjs-moment (2.29.4+ds-1) ... 130s Setting up python3-pandocfilters (1.5.1-1) ... 130s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 130s Setting up libjs-es6-promise (4.2.8-12) ... 130s Setting up libjs-text-encoding (0.7.0-5) ... 130s Setting up python3-webencodings (0.5.1-5build1) ... 131s Setting up python3-platformdirs (4.5.1-1) ... 131s Setting up python3-psutil (7.1.0-1ubuntu1) ... 132s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 132s Setting up python3-pycparser (2.23-2) ... 133s Setting up python3-requests-unixsocket (1.0.1-1) ... 133s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 133s Setting up libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build2) ... 133s Setting up python3-decorator (5.2.1-2) ... 134s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 135s Setting up node-jed (1.1.1-4) ... 135s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 135s Setting up libjs-xterm (5.3.0-4) ... 135s Setting up python3-nest-asyncio (1.6.0-1) ... 135s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 135s Setting up libjs-jed (1.1.1-4) ... 135s Setting up python3-html5lib (1.2-3) ... 135s Setting up libbabeltrace1:s390x (1.5.11-5) ... 135s Setting up python3-pluggy (1.6.0-2) ... 136s Setting up python3-fastjsonschema (2.21.1-1) ... 136s Setting up python3-terminado (0.18.1-1) ... 136s Setting up python3-astroid (4.0.2-1ubuntu1) ... 138s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 138s Setting up python-tinycss2-common (1.5.1-1) ... 138s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 138s Setting up python3-mistune (3.1.4-1) ... 139s Setting up python3-soupsieve (2.8.3-1) ... 139s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 139s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 139s Setting up python3.14-minimal (3.14.2-1) ... 142s Setting up python3-jupyter-core (5.9.1-1) ... 142s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 142s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 142s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 142s Setting up python3-prompt-toolkit (3.0.52-2) ... 144s Setting up python3-tinycss2 (1.5.1-1) ... 144s Setting up libzmq5:s390x (4.3.5-1build3) ... 144s Setting up python3-jedi (0.19.1+ds1-1build1) ... 146s Setting up libpython3.14-stdlib:s390x (3.14.2-1) ... 146s Setting up python3-asttokens (3.0.1-1) ... 146s Setting up python3-pytest (9.0.2-2) ... 147s Setting up python3-cffi (2.0.0-2) ... 147s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 147s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 147s Setting up libsource-highlight4t64:s390x (3.1.9-4.3build2) ... 147s Setting up python3-nbformat (5.10.4-1) ... 148s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 148s Setting up python3-bs4 (4.14.3-2build1) ... 149s Setting up python3-bleach (6.3.0-1) ... 149s Setting up python3-matplotlib-inline (0.2.1-1) ... 149s Setting up python3-comm (0.2.1-1build1) ... 149s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 150s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 150s Setting up python3-executing (2.2.1-0.1) ... 150s Setting up python3-zmq (27.1.0-1) ... 150s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 151s Setting up python3-argon2 (25.1.0-2) ... 151s Setting up libpython3.14:s390x (3.14.2-1) ... 151s Setting up python3-jupyter-client (8.7.0-1) ... 151s Setting up jupyter-core (5.9.1-1) ... 151s Setting up python3.14 (3.14.2-1) ... 153s Setting up python3-stack-data (0.6.3-3) ... 153s Setting up python3-all (3.13.9-3) ... 153s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 154s Setting up python3-nbclient (0.10.4-1) ... 155s Setting up gdb (17.1-1ubuntu2) ... 155s Setting up python3-ipython (8.35.0-2) ... 156s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 156s return result 157s Setting up python3-nbconvert (7.16.6-1) ... 158s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 160s Setting up python3-ipykernel (6.30.1-1) ... 160s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 161s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 161s Processing triggers for systemd (259-1ubuntu2) ... 162s Processing triggers for man-db (2.13.1-1) ... 162s Processing triggers for libc-bin (2.42-2ubuntu4) ... 164s autopkgtest [06:03:06]: test pytest: [----------------------- 164s Testing with python3.14 164s *** 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 171s ============================= test session starts ============================== 171s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 171s rootdir: /tmp/autopkgtest.n0cVOx/autopkgtest_tmp 171s plugins: typeguard-4.4.4 171s collected 330 items / 6 deselected / 324 selected 171s 172s auth/tests/test_login.py .. [ 0%] 174s auth/tests/test_security.py .... [ 1%] 175s bundler/tests/test_bundler_api.py ..... [ 3%] 175s bundler/tests/test_bundler_tools.py ............. [ 7%] 175s bundler/tests/test_bundlerextension.py ... [ 8%] 175s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 175s services/api/tests/test_api.py ... [ 11%] 175s services/config/tests/test_config_api.py ... [ 12%] 176s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 177s ................s...........ss..s......................... [ 38%] 177s services/contents/tests/test_fileio.py ... [ 39%] 177s services/contents/tests/test_largefilemanager.py . [ 39%] 177s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 178s .... [ 50%] 190s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 190s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 192s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 193s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 195s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 195s F [ 66%] 199s terminal/tests/test_terminals_api.py ........ [ 68%] 199s tests/test_config_manager.py . [ 68%] 200s tests/test_files.py ..... [ 70%] 200s tests/test_gateway.py ...... [ 72%] 200s tests/test_i18n.py . [ 72%] 200s tests/test_log.py . [ 72%] 201s tests/test_nbextensions.py ................................... [ 83%] 203s tests/test_notebookapp.py .......................... [ 91%] 203s tests/test_paths.py ... [ 92%] 203s tests/test_serialize.py .. [ 93%] 204s tests/test_serverextensions.py ..... [ 94%] 204s tests/test_traittypes.py ........... [ 98%] 206s tests/test_utils.py ....s [ 99%] 208s tree/tests/test_tree_handler.py . [100%] 208s 208s ==================================== ERRORS ==================================== 208s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 208s 208s self = 208s 208s def tearDown(self): 208s for k in self.kern_api.list().json(): 208s > self.kern_api.shutdown(k['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/site.py", line 735, in 208s main() 208s File "/usr/lib/python3.13/site.py", line 730, in main 208s execusercustomize() 208s File "/usr/lib/python3.13/site.py", line 687, in execusercustomize 208s import usercustomize 208s File "", line 1360, in _find_and_load 208s File "", line 1322, in _find_and_load_unlocked 208s File "", line 1262, in _find_spec 208s File "", line 1556, in find_spec 208s File "", line 1530, in _get_spec 208s File "", line 1629, in find_spec 208s File "", line 152, in _path_stat 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-0fc1eeac-8c4b-43ae-85e8-9826973211cb.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52661 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47803 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0fc1eeac-8c4b-43ae-85e8-9826973211cb, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.130000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-613934b3-716f-4998-82f6-40cf77a5da2d.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56437 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53081 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 613934b3-716f-4998-82f6-40cf77a5da2d, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.360000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 613934b3-716f-4998-82f6-40cf77a5da2d 208s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/613934b3-716f-4998-82f6-40cf77a5da2d/interrupt (::1) 0.560000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 208s yield maybe_future(km.restart_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 208s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 208s await ensure_async(kernel.restart_kernel(now=now)) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 208s await self._async_shutdown_kernel(now=now, restart=True) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/613934b3-716f-4998-82f6-40cf77a5da2d/restart (::1) 4.450000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.240000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 208s yielded = ctx_run(next, result) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 208s from zmq import sugar 208s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 208s from zmq.sugar import context, frame, poll, socket, tracker, version 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1115, in get_code 208s File "", line 1215, in get_data 208s KeyboardInterrupt 208s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 208s 208s self = 208s 208s def tearDown(self): 208s for k in self.kern_api.list().json(): 208s > self.kern_api.shutdown(k['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/site.py", line 79, in 208s import os 208s File "/usr/lib/python3.13/os.py", line 870, in 208s fsencode, fsdecode = _fscodec() 208s ~~~~~~~~^^ 208s File "/usr/lib/python3.13/os.py", line 842, in _fscodec 208s errors = sys.getfilesystemencodeerrors() 208s KeyboardInterrupt 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 21, in 208s from IPython.core.application import ( # type:ignore[attr-defined] 208s ...<4 lines>... 208s ) 208s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 55, in 208s from .terminal.embed import embed 208s File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 16, in 208s from IPython.terminal.interactiveshell import TerminalInteractiveShell 208s File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 51, in 208s from .debugger import TerminalPdb, Pdb 208s File "/usr/lib/python3/dist-packages/IPython/terminal/debugger.py", line 6, in 208s from IPython.core.completer import IPCompleter 208s File "/usr/lib/python3/dist-packages/IPython/core/completer.py", line 628, in 208s @dataclass 208s ^^^^^^^^^ 208s File "/usr/lib/python3.13/dataclasses.py", line 1305, in dataclass 208s return wrap(cls) 208s File "/usr/lib/python3.13/dataclasses.py", line 1295, in wrap 208s return _process_class(cls, init, repr, eq, order, unsafe_hash, 208s frozen, match_args, kw_only, slots, 208s weakref_slot) 208s File "/usr/lib/python3.13/dataclasses.py", line 1157, in _process_class 208s func_builder.add_fns_to_class(cls) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 208s File "/usr/lib/python3.13/dataclasses.py", line 498, in add_fns_to_class 208s exec(txt, self.globals, ns) 208s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 208s File "", line 0, in 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-70cd66f7-2ac4-4abe-a9bc-9285af0d5b71.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54999 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58891 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 39.130000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-37479490-45e9-4009-83f3-4810c0c1fef8.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50045 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59345 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37479490-45e9-4009-83f3-4810c0c1fef8, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 119.640000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 37479490-45e9-4009-83f3-4810c0c1fef8 208s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8/interrupt (::1) 0.590000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 208s yield maybe_future(km.restart_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 208s result = coro.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 208s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 208s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 208s yield self # This tells Task to wait for completion. 208s ^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 208s await ensure_async(kernel.restart_kernel(now=now)) 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 208s await self._async_shutdown_kernel(now=now, restart=True) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8/restart (::1) 788.010000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-2a5cfec7-be39-4cd6-9a46-e8307f20babc.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37713 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56859 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a5cfec7-be39-4cd6-9a46-e8307f20babc, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 57.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.610000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb (::1) 1.690000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5cfec7-be39-4cd6-9a46-e8307f20babc 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5cfec7-be39-4cd6-9a46-e8307f20babc 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447 (::1) 22.760000ms referer=None 208s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 208s import asyncio 208s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 208s from .base_events import * 208s File "/usr/lib/python3.13/asyncio/base_events.py", line 40, in 208s from . import events 208s File "/usr/lib/python3.13/asyncio/events.py", line 862, in 208s from _asyncio import (_get_running_loop, _set_running_loop, 208s get_running_loop, get_event_loop) 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1124, in get_code 208s File "", line 719, in _classify_pyc 208s File "", line 89, in _unpack_uint32 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-4e08586f-1adb-45ce-ae18-296d5582728a.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38593 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36787 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e08586f-1adb-45ce-ae18-296d5582728a, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.250000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-3076dcbb-93f8-459d-8208-fe86e64cfdc9.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49749 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48015 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3076dcbb-93f8-459d-8208-fe86e64cfdc9, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 39.400000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e08586f-1adb-45ce-ae18-296d5582728a 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e08586f-1adb-45ce-ae18-296d5582728a 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 208s km.shutdown_kernel(before['kernel']['id']) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 8.080000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 208s from zmq import backend 208s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 208s _ns = select_backend(first) 208s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 208s mod = import_module(name) 208s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 208s from . import _zmq 208s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 208s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 208s class SocketOption(IntEnum): 208s ...<138 lines>... 208s NORM_PUSH = 124 208s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 208s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 208s File "/usr/lib/python3.13/enum.py", line 325, in __set_name__ 208s enum_class._add_member_(member_name, enum_member) 208s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/enum.py", line 1071, in _add_member_ 208s attr = base.__dict__.get(name) 208s KeyboardInterrupt 208s Error calling __set_name__ on '_proto_member' instance 'MECHANISM' in 'SocketOption' 208s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-402d9a3c-ddb7-4091-bd63-59ff49a9e12b.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41229 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57633 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 402d9a3c-ddb7-4091-bd63-59ff49a9e12b, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 21.420000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 402d9a3c-ddb7-4091-bd63-59ff49a9e12b 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 402d9a3c-ddb7-4091-bd63-59ff49a9e12b 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 208s from subprocess import PIPE, Popen 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-87505494-ae42-4fc6-8c2b-6a761b695abf.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53827 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35407 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 87505494-ae42-4fc6-8c2b-6a761b695abf, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.050000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.670000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 518f9a84-0e20-4123-92be-c50aa8f88c25 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 518f9a84-0e20-4123-92be-c50aa8f88c25 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6ed2fb82-e5ed-4440-9601-cb44bf2a4f98 (::1) 0.690000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 87505494-ae42-4fc6-8c2b-6a761b695abf 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87505494-ae42-4fc6-8c2b-6a761b695abf 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 208s from zmq import sugar 208s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 208s from zmq.sugar import context, frame, poll, socket, tracker, version 208s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 208s from .socket import Socket, SyncSocket 208s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 208s _SocketType = TypeVar("_SocketType", bound="Socket") 208s File "/usr/lib/python3.13/typing.py", line 191, in _type_check 208s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms) 208s File "/usr/lib/python3.13/typing.py", line 169, in _type_convert 208s return ForwardRef(arg, module=module, is_class=allow_special_forms) 208s File "/usr/lib/python3.13/typing.py", line 1035, in __init__ 208s code = compile(arg_to_compile, '', 'eval') 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-13912d8f-1440-4f5e-b81a-e174d0715805.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60651 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60335 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 13912d8f-1440-4f5e-b81a-e174d0715805, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.600000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-0373c79a-c2f3-4484-bc21-5ff13cccf7fe.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50481 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41609 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13912d8f-1440-4f5e-b81a-e174d0715805 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13912d8f-1440-4f5e-b81a-e174d0715805 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 208s yield maybe_future( 208s km.shutdown_kernel(before['kernel']['id']) 208s ) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 6.430000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ---------------------------- Captured stderr setup ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 208s from typing import TYPE_CHECKING, Any 208s File "/usr/lib/python3.13/typing.py", line 1726, in 208s class _CallableType(_SpecialGenericAlias, _root=True): 208s ...<29 lines>... 208s return self.copy_with(params) 208s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 208s @_tp_cache 208s ^^^^^^^^^ 208s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 208s return decorator(func) 208s File "/usr/lib/python3.13/typing.py", line 415, in decorator 208s def decorator(func): 208s 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-3f8599b6-685d-4cc6-b236-fd17d97a3324.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58905 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39861 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f8599b6-685d-4cc6-b236-fd17d97a3324, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 13.710000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f8599b6-685d-4cc6-b236-fd17d97a3324 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f8599b6-685d-4cc6-b236-fd17d97a3324 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s =================================== FAILURES =================================== 208s ______________________ KernelAPITest.test_default_kernel _______________________ 208s 208s self = 208s 208s def tearDown(self): 208s for k in self.kern_api.list().json(): 208s > self.kern_api.shutdown(k['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/249cc6e7-df9c-4245-ae6b-0f824a1a3d3b 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log setup ------------------------------ 208s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpar_4uvpx/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpar_4uvpx/etc/jupyter'] for config files 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpar_4uvpx/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpar_4uvpx/config 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpar_4uvpx/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpar_4uvpx/config 208s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpar_4uvpx/notebooks 208s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 208s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 208s WARNING NotebookApp:handlers.py:612 Forbidden 208s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.140000ms referer=None 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-249cc6e7-df9c-4245-ae6b-0f824a1a3d3b.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60501 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46203 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 249cc6e7-df9c-4245-ae6b-0f824a1a3d3b, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 51.730000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 249cc6e7-df9c-4245-ae6b-0f824a1a3d3b 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249cc6e7-df9c-4245-ae6b-0f824a1a3d3b 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/249cc6e7-df9c-4245-ae6b-0f824a1a3d3b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/249cc6e7-df9c-4245-ae6b-0f824a1a3d3b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 208s yielded = ctx_run(next, result) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/249cc6e7-df9c-4245-ae6b-0f824a1a3d3b (::1) 6.980000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 208s import functools 208s File "/usr/lib/python3.13/functools.py", line 18, in 208s from collections import namedtuple 208s File "/usr/lib/python3.13/collections/__init__.py", line 86, in 208s class OrderedDict(dict): 208s ...<252 lines>... 208s return new 208s File "/usr/lib/python3.13/collections/__init__.py", line 305, in OrderedDict 208s @classmethod 208s ^^^^^^^^^^^ 208s KeyboardInterrupt 208s ______________________ KernelAPITest.test_kernel_handler _______________________ 208s 208s self = 208s 208s def test_kernel_handler(self): 208s # GET kernel with given id 208s kid = self.kern_api.start().json()['id'] 208s r = self.kern_api.get(kid) 208s kern1 = r.json() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(kern1, dict) 208s self.assertIn('id', kern1) 208s self.assertEqual(kern1['id'], kid) 208s 208s # Request a bad kernel id and check that a JSON 208s # message is returned! 208s bad_id = '111-111-111-111-111' 208s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 208s self.kern_api.get(bad_id) 208s 208s # DELETE kernel with id 208s > r = self.kern_api.shutdown(kid) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-700a1c1c-dd94-4c44-a671-7af4d1f39673.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58433 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50559 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 700a1c1c-dd94-4c44-a671-7af4d1f39673, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.310000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673 (::1) 1.340000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s 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 208s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 208s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.430000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 700a1c1c-dd94-4c44-a671-7af4d1f39673 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 700a1c1c-dd94-4c44-a671-7af4d1f39673 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 208s yielded = ctx_run(next, result) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673 (::1) 13.530000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 249cc6e7-df9c-4245-ae6b-0f824a1a3d3b 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 249cc6e7-df9c-4245-ae6b-0f824a1a3d3b 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/249cc6e7-df9c-4245-ae6b-0f824a1a3d3b (::1) 1.410000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 700a1c1c-dd94-4c44-a671-7af4d1f39673 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 700a1c1c-dd94-4c44-a671-7af4d1f39673 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/700a1c1c-dd94-4c44-a671-7af4d1f39673 (::1) 0.440000ms 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 125, in 208s import enum 208s File "/usr/lib/python3.13/enum.py", line 1932, in 208s @_simple_enum(StrEnum) 208s ~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.13/enum.py", line 1906, in convert_class 208s member.__init__(value) 208s ~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3.13/enum.py", line 1217, in __init__ 208s def __init__(self, *args, **kwds): 208s 208s KeyboardInterrupt 208s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 208s 208s self = 208s 208s def test_main_kernel_handler(self): 208s # POST request 208s r = self.kern_api.start() 208s kern1 = r.json() 208s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 208s self.assertEqual(r.status_code, 201) 208s self.assertIsInstance(kern1, dict) 208s 208s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 208s expected_csp = '; '.join([ 208s "frame-ancestors 'self'", 208s 'report-uri ' + report_uri, 208s "default-src 'none'" 208s ]) 208s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 208s 208s # GET request 208s r = self.kern_api.list() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(r.json(), list) 208s self.assertEqual(r.json()[0]['id'], kern1['id']) 208s self.assertEqual(r.json()[0]['name'], kern1['name']) 208s 208s # create another kernel and check that they both are added to the 208s # list of kernels from a GET request 208s kern2 = self.kern_api.start().json() 208s assert isinstance(kern2, dict) 208s r = self.kern_api.list() 208s kernels = r.json() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(kernels, list) 208s self.assertEqual(len(kernels), 2) 208s 208s # Interrupt a kernel 208s r = self.kern_api.interrupt(kern2['id']) 208s self.assertEqual(r.status_code, 204) 208s 208s # Restart a kernel 208s > r = self.kern_api.restart(kern2['id']) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 208s return self._req('POST', url_path_join(id, 'restart')) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/613934b3-716f-4998-82f6-40cf77a5da2d/restart 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/site.py", line 735, in 208s main() 208s File "/usr/lib/python3.13/site.py", line 730, in main 208s execusercustomize() 208s File "/usr/lib/python3.13/site.py", line 687, in execusercustomize 208s import usercustomize 208s File "", line 1360, in _find_and_load 208s File "", line 1322, in _find_and_load_unlocked 208s File "", line 1262, in _find_spec 208s File "", line 1556, in find_spec 208s File "", line 1530, in _get_spec 208s File "", line 1629, in find_spec 208s File "", line 152, in _path_stat 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-0fc1eeac-8c4b-43ae-85e8-9826973211cb.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52661 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47803 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0fc1eeac-8c4b-43ae-85e8-9826973211cb, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.130000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpar_4uvpx/runtime/kernel-613934b3-716f-4998-82f6-40cf77a5da2d.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56437 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53081 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 613934b3-716f-4998-82f6-40cf77a5da2d, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.360000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 613934b3-716f-4998-82f6-40cf77a5da2d 208s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/613934b3-716f-4998-82f6-40cf77a5da2d/interrupt (::1) 0.560000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 208s yield maybe_future(km.restart_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 208s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 208s await ensure_async(kernel.restart_kernel(now=now)) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 208s await self._async_shutdown_kernel(now=now, restart=True) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/613934b3-716f-4998-82f6-40cf77a5da2d/restart (::1) 4.450000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.240000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 208s yielded = ctx_run(next, result) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ________________________ KernelAPITest.test_no_kernels _________________________ 208s 208s self = 208s 208s def test_no_kernels(self): 208s """Make sure there are no kernels running at the start""" 208s kernels = self.kern_api.list().json() 208s > self.assertEqual(kernels, []) 208s E AssertionError: Lists differ: [{'id': '0fc1eeac-8c4b-43ae-85e8-982697321[281 chars]: 0}] != [] 208s E 208s E First list contains 2 additional elements. 208s E First extra element 0: 208s E {'id': '0fc1eeac-8c4b-43ae-85e8-9826973211cb', 'name': 'python3', 'last_activity': '2026-01-30T06:05:34.738817Z', 'execution_state': 'starting', 'connections': 0} 208s E 208s E + [] 208s E - [{'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '0fc1eeac-8c4b-43ae-85e8-9826973211cb', 208s E - 'last_activity': '2026-01-30T06:05:34.738817Z', 208s E - 'name': 'python3'}, 208s E - {'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '613934b3-716f-4998-82f6-40cf77a5da2d', 208s E - 'last_activity': '2026-01-30T06:05:34.762231Z', 208s E - 'name': 'python3'}] 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0fc1eeac-8c4b-43ae-85e8-9826973211cb 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0fc1eeac-8c4b-43ae-85e8-9826973211cb (::1) 0.450000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 613934b3-716f-4998-82f6-40cf77a5da2d 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 613934b3-716f-4998-82f6-40cf77a5da2d 208s ---------------------------- Captured log teardown ----------------------------- 208s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 208s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 208s _____________________ AsyncKernelAPITest.test_connections ______________________ 208s 208s self = 208s 208s def tearDown(self): 208s for k in self.kern_api.list().json(): 208s > self.kern_api.shutdown(k['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log setup ------------------------------ 208s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpexiy7y80/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpexiy7y80/etc/jupyter'] for config files 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpexiy7y80/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpexiy7y80/config 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpexiy7y80/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpexiy7y80/config 208s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpexiy7y80/notebooks 208s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 208s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 208s WARNING NotebookApp:handlers.py:612 Forbidden 208s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.850000ms referer=None 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-29f06f9d-5c40-4abc-862c-d0579584e21e.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55149 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47669 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 29f06f9d-5c40-4abc-862c-d0579584e21e, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.930000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 0.460000ms 208s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e/channels 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 208s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38453 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (starting) 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (busy) 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (idle) 208s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 208s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 29f06f9d-5c40-4abc-862c-d0579584e21e) to 5.4 (client). 208s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e/channels (::1) 1462.210000ms 208s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e/channels 208s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47669 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38453 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55149 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55249 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38453 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55149 208s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 208s Setting websocket_ping_timeout=30000 208s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 3.420000ms 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (busy) 208s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (busy) 208s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (idle) 208s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:kernelmanager.py:423 activity on 29f06f9d-5c40-4abc-862c-d0579584e21e: status (idle) 208s DEBUG NotebookApp:handlers.py:579 Websocket closed 29f06f9d-5c40-4abc-862c-d0579584e21e:ae92cf87-9c9fd1746d42d6f51504fddb 208s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 29f06f9d-5c40-4abc-862c-d0579584e21e:ae92cf87-9c9fd1746d42d6f51504fddb 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 29f06f9d-5c40-4abc-862c-d0579584e21e:iopub 208s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 29f06f9d-5c40-4abc-862c-d0579584e21e:iopub 208s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 29f06f9d-5c40-4abc-862c-d0579584e21e:iopub 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 1.110000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 0.430000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 29f06f9d-5c40-4abc-862c-d0579584e21e 208s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 29f06f9d-5c40-4abc-862c-d0579584e21e:ae92cf87-9c9fd1746d42d6f51504fddb 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 208s 208s self = 208s 208s def tearDown(self): 208s for k in self.kern_api.list().json(): 208s > self.kern_api.shutdown(k['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3aa014cc-3108-416b-87dc-24b3817da1d9 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-3aa014cc-3108-416b-87dc-24b3817da1d9.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52111 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49211 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3aa014cc-3108-416b-87dc-24b3817da1d9, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.890000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.310000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 29f06f9d-5c40-4abc-862c-d0579584e21e 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/29f06f9d-5c40-4abc-862c-d0579584e21e (::1) 4.900000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3aa014cc-3108-416b-87dc-24b3817da1d9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3aa014cc-3108-416b-87dc-24b3817da1d9 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3aa014cc-3108-416b-87dc-24b3817da1d9 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3aa014cc-3108-416b-87dc-24b3817da1d9', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3aa014cc-3108-416b-87dc-24b3817da1d9 (::1) 14.640000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1115, in get_code 208s File "", line 1214, in get_data 208s KeyboardInterrupt 208s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 208s 208s self = 208s 208s def test_kernel_handler(self): 208s # GET kernel with given id 208s kid = self.kern_api.start().json()['id'] 208s r = self.kern_api.get(kid) 208s kern1 = r.json() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(kern1, dict) 208s self.assertIn('id', kern1) 208s self.assertEqual(kern1['id'], kid) 208s 208s # Request a bad kernel id and check that a JSON 208s # message is returned! 208s bad_id = '111-111-111-111-111' 208s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 208s self.kern_api.get(bad_id) 208s 208s # DELETE kernel with id 208s > r = self.kern_api.shutdown(kid) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/623bbff2-73c1-48d3-b69a-b82d676a7f13 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-623bbff2-73c1-48d3-b69a-b82d676a7f13.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49539 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54013 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 623bbff2-73c1-48d3-b69a-b82d676a7f13, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.590000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/623bbff2-73c1-48d3-b69a-b82d676a7f13 (::1) 0.410000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s 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 208s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 208s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.500000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 623bbff2-73c1-48d3-b69a-b82d676a7f13 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 623bbff2-73c1-48d3-b69a-b82d676a7f13 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/623bbff2-73c1-48d3-b69a-b82d676a7f13 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/623bbff2-73c1-48d3-b69a-b82d676a7f13', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/623bbff2-73c1-48d3-b69a-b82d676a7f13 (::1) 10.340000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3aa014cc-3108-416b-87dc-24b3817da1d9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3aa014cc-3108-416b-87dc-24b3817da1d9 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3aa014cc-3108-416b-87dc-24b3817da1d9 (::1) 1.490000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 623bbff2-73c1-48d3-b69a-b82d676a7f13 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 623bbff2-73c1-48d3-b69a-b82d676a7f13 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 208s import functools 208s File "/usr/lib/python3.13/functools.py", line 18, in 208s from collections import namedtuple 208s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 208s from _collections import deque 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 946, in _load_unlocked 208s KeyboardInterrupt 208s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 208s 208s self = 208s 208s def test_main_kernel_handler(self): 208s # POST request 208s r = self.kern_api.start() 208s kern1 = r.json() 208s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 208s self.assertEqual(r.status_code, 201) 208s self.assertIsInstance(kern1, dict) 208s 208s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 208s expected_csp = '; '.join([ 208s "frame-ancestors 'self'", 208s 'report-uri ' + report_uri, 208s "default-src 'none'" 208s ]) 208s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 208s 208s # GET request 208s r = self.kern_api.list() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(r.json(), list) 208s self.assertEqual(r.json()[0]['id'], kern1['id']) 208s self.assertEqual(r.json()[0]['name'], kern1['name']) 208s 208s # create another kernel and check that they both are added to the 208s # list of kernels from a GET request 208s kern2 = self.kern_api.start().json() 208s assert isinstance(kern2, dict) 208s r = self.kern_api.list() 208s kernels = r.json() 208s self.assertEqual(r.status_code, 200) 208s assert isinstance(kernels, list) 208s self.assertEqual(len(kernels), 2) 208s 208s # Interrupt a kernel 208s r = self.kern_api.interrupt(kern2['id']) 208s self.assertEqual(r.status_code, 204) 208s 208s # Restart a kernel 208s > r = self.kern_api.restart(kern2['id']) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 208s return self._req('POST', url_path_join(id, 'restart')) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8/restart 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/site.py", line 79, in 208s import os 208s File "/usr/lib/python3.13/os.py", line 870, in 208s fsencode, fsdecode = _fscodec() 208s ~~~~~~~~^^ 208s File "/usr/lib/python3.13/os.py", line 842, in _fscodec 208s errors = sys.getfilesystemencodeerrors() 208s KeyboardInterrupt 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 21, in 208s from IPython.core.application import ( # type:ignore[attr-defined] 208s ...<4 lines>... 208s ) 208s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 55, in 208s from .terminal.embed import embed 208s File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 16, in 208s from IPython.terminal.interactiveshell import TerminalInteractiveShell 208s File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 51, in 208s from .debugger import TerminalPdb, Pdb 208s File "/usr/lib/python3/dist-packages/IPython/terminal/debugger.py", line 6, in 208s from IPython.core.completer import IPCompleter 208s File "/usr/lib/python3/dist-packages/IPython/core/completer.py", line 628, in 208s @dataclass 208s ^^^^^^^^^ 208s File "/usr/lib/python3.13/dataclasses.py", line 1305, in dataclass 208s return wrap(cls) 208s File "/usr/lib/python3.13/dataclasses.py", line 1295, in wrap 208s return _process_class(cls, init, repr, eq, order, unsafe_hash, 208s frozen, match_args, kw_only, slots, 208s weakref_slot) 208s File "/usr/lib/python3.13/dataclasses.py", line 1157, in _process_class 208s func_builder.add_fns_to_class(cls) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 208s File "/usr/lib/python3.13/dataclasses.py", line 498, in add_fns_to_class 208s exec(txt, self.globals, ns) 208s ~~~~^^^^^^^^^^^^^^^^^^^^^^^ 208s File "", line 0, in 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-70cd66f7-2ac4-4abe-a9bc-9285af0d5b71.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54999 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58891 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 39.130000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpexiy7y80/runtime/kernel-37479490-45e9-4009-83f3-4810c0c1fef8.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50045 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59345 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37479490-45e9-4009-83f3-4810c0c1fef8, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 119.640000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.720000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 37479490-45e9-4009-83f3-4810c0c1fef8 208s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8/interrupt (::1) 0.590000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 208s yield maybe_future(km.restart_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 208s result = coro.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 208s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 208s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 208s yield self # This tells Task to wait for completion. 208s ^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 208s await ensure_async(kernel.restart_kernel(now=now)) 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 208s await self._async_shutdown_kernel(now=now, restart=True) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8/restart (::1) 788.010000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 208s yield maybe_future(km.shutdown_kernel(kernel_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 208s 208s self = 208s 208s def test_no_kernels(self): 208s """Make sure there are no kernels running at the start""" 208s kernels = self.kern_api.list().json() 208s > self.assertEqual(kernels, []) 208s E AssertionError: Lists differ: [{'id': '70cd66f7-2ac4-4abe-a9bc-9285af0d5[281 chars]: 0}] != [] 208s E 208s E First list contains 2 additional elements. 208s E First extra element 0: 208s E {'id': '70cd66f7-2ac4-4abe-a9bc-9285af0d5b71', 'name': 'python3', 'last_activity': '2026-01-30T06:05:36.667136Z', 'execution_state': 'starting', 'connections': 0} 208s E 208s E + [] 208s E - [{'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '70cd66f7-2ac4-4abe-a9bc-9285af0d5b71', 208s E - 'last_activity': '2026-01-30T06:05:36.667136Z', 208s E - 'name': 'python3'}, 208s E - {'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '37479490-45e9-4009-83f3-4810c0c1fef8', 208s E - 'last_activity': '2026-01-30T06:05:36.799941Z', 208s E - 'name': 'python3'}] 208s 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 (::1) 0.430000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37479490-45e9-4009-83f3-4810c0c1fef8 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37479490-45e9-4009-83f3-4810c0c1fef8 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/37479490-45e9-4009-83f3-4810c0c1fef8 (::1) 0.460000ms 208s ---------------------------- Captured log teardown ----------------------------- 208s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 623bbff2-73c1-48d3-b69a-b82d676a7f13 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 29f06f9d-5c40-4abc-862c-d0579584e21e 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70cd66f7-2ac4-4abe-a9bc-9285af0d5b71 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3aa014cc-3108-416b-87dc-24b3817da1d9 208s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 208s __________________________ SessionAPITest.test_create __________________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log setup ------------------------------ 208s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzc28kswr/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzc28kswr/etc/jupyter'] for config files 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzc28kswr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzc28kswr/config 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzc28kswr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzc28kswr/config 208s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzc28kswr/notebooks 208s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 208s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 208s WARNING NotebookApp:handlers.py:612 Forbidden 208s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-a75eee34-c7c8-4fce-947d-423930afb3c8.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42333 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39795 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: a75eee34-c7c8-4fce-947d-423930afb3c8, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 38.600000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d (::1) 0.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.480000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a75eee34-c7c8-4fce-947d-423930afb3c8 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a75eee34-c7c8-4fce-947d-423930afb3c8 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d (::1) 8.420000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/site.py", line 735, in 208s main() 208s ~~~~^^ 208s File "/usr/lib/python3.13/site.py", line 722, in main 208s known_paths = addsitepackages(known_paths) 208s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 208s addsitedir(sitedir, known_paths) 208s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 208s addpackage(sitedir, name, known_paths) 208s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/site.py", line 213, in addpackage 208s exec(line) 208s ~~~~^^^^^^ 208s File "", line 1, in 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s __________________ SessionAPITest.test_create_console_session __________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/48f93af9-163a-49f4-abb7-df3a7514eda7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-71dd349a-7548-4d60-b5b1-e5da651ecefa.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54501 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41475 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 71dd349a-7548-4d60-b5b1-e5da651ecefa, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.040000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.130000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a75eee34-c7c8-4fce-947d-423930afb3c8 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a75eee34-c7c8-4fce-947d-423930afb3c8 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/831c81cf-e8ad-415c-8823-13300181f74d (::1) 3.110000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71dd349a-7548-4d60-b5b1-e5da651ecefa 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71dd349a-7548-4d60-b5b1-e5da651ecefa 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/48f93af9-163a-49f4-abb7-df3a7514eda7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/48f93af9-163a-49f4-abb7-df3a7514eda7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 208s import json 208s File "/usr/lib/python3.13/json/__init__.py", line 107, in 208s from .encoder import JSONEncoder 208s File "/usr/lib/python3.13/json/encoder.py", line 19, in 208s ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') 208s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 208s return _compile(pattern, flags) 208s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 208s p = _compiler.compile(pattern, flags) 208s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 208s p = _parser.parse(p, flags) 208s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 208s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 208s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 208s itemsappend(_parse(source, state, verbose, nested + 1, 208s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s not nested and not items)) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/re/_parser.py", line 868, in _parse 208s state.closegroup(group, p) 208s ~~~~~~~~~~~~~~~~^^^^^^^^^^ 208s File "/usr/lib/python3.13/re/_parser.py", line 98, in closegroup 208s self.groupwidths[gid] = p.getwidth() 208s ~~~~~~~~~~^^ 208s File "/usr/lib/python3.13/re/_parser.py", line 189, in getwidth 208s j = max(j, h) 208s KeyboardInterrupt 208s ____________________ SessionAPITest.test_create_deprecated _____________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4d619050-85fa-4397-ada3-45675330271d 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 126, in 208s from . import _compiler, _parser 208s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 208s from . import _parser 208s File "/usr/lib/python3.13/re/_parser.py", line 15, in 208s from ._constants import * 208s File "/usr/lib/python3.13/re/_constants.py", line 130, in 208s ATCODES = _makecodes( 208s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 208s ...<5 lines>... 208s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 208s ) 208s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 208s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 208s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-7741321d-f3ab-45cc-a383-3302b415e257.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56767 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38805 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7741321d-f3ab-45cc-a383-3302b415e257, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71dd349a-7548-4d60-b5b1-e5da651ecefa 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71dd349a-7548-4d60-b5b1-e5da651ecefa 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/48f93af9-163a-49f4-abb7-df3a7514eda7 (::1) 0.760000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7741321d-f3ab-45cc-a383-3302b415e257 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7741321d-f3ab-45cc-a383-3302b415e257 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4d619050-85fa-4397-ada3-45675330271d (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4d619050-85fa-4397-ada3-45675330271d', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4d619050-85fa-4397-ada3-45675330271d (::1) 16.440000ms referer=None 208s ___________________ SessionAPITest.test_create_file_session ____________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-a1f37f2c-f7f7-4313-9a07-77fb24148ec5.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48281 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49859 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1f37f2c-f7f7-4313-9a07-77fb24148ec5, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.560000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7741321d-f3ab-45cc-a383-3302b415e257 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7741321d-f3ab-45cc-a383-3302b415e257 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4d619050-85fa-4397-ada3-45675330271d (::1) 8.000000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 126, in 208s from . import _compiler, _parser 208s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 208s from . import _parser 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 208s 208s self = 208s 208s def test_create_with_kernel_id(self): 208s # create a new kernel 208s r = self.request('POST', 'api/kernels') 208s r.raise_for_status() 208s kernel = r.json() 208s 208s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 208s self.assertEqual(resp.status_code, 201) 208s newsession = resp.json() 208s self.assertIn('id', newsession) 208s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 208s self.assertEqual(newsession['kernel']['id'], kernel['id']) 208s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 208s 208s sessions = self.sess_api.list().json() 208s > self.assertEqual(sessions, [newsession]) 208s E AssertionError: Lists differ: [{'id': 'b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb', 'p[553 chars]ne}}] != [{'id': 'c9ab79ea-f5e4-42ce-b631-5258f4b91447', 'p[279 chars]ne}}] 208s E 208s E First differing element 0: 208s E {'id': 'b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb', 'p[218 chars]: 0}} 208s E {'id': 'c9ab79ea-f5e4-42ce-b631-5258f4b91447', 'p[278 chars]one}} 208s E 208s E First list contains 1 additional elements. 208s E First extra element 1: 208s E {'id': 'c9ab79ea-f5e4-42ce-b631-5258f4b91447', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '2a5cfec7-be39-4cd6-9a46-e8307f20babc', 'name': 'python3', 'last_activity': '2026-01-30T06:05:50.389472Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 208s E 208s E Diff is 830 characters long. Set self.maxDiff to None to see it. 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-2a5cfec7-be39-4cd6-9a46-e8307f20babc.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37713 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56859 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a5cfec7-be39-4cd6-9a46-e8307f20babc, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 57.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.610000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1f37f2c-f7f7-4313-9a07-77fb24148ec5 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b3f33a3f-5d15-47a2-9ab7-3d0aaa425eeb (::1) 1.690000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a5cfec7-be39-4cd6-9a46-e8307f20babc 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a5cfec7-be39-4cd6-9a46-e8307f20babc 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c9ab79ea-f5e4-42ce-b631-5258f4b91447 (::1) 22.760000ms referer=None 208s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 208s 208s self = 208s 208s def test_modify_kernel_id(self): 208s before = self.sess_api.create('foo/nb1.ipynb').json() 208s sid = before['id'] 208s 208s # create a new kernel 208s r = self.request('POST', 'api/kernels') 208s r.raise_for_status() 208s kernel = r.json() 208s 208s # Attach our session to the existing kernel 208s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 208s return self._req('PATCH', id, body) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 208s import asyncio 208s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 208s from .base_events import * 208s File "/usr/lib/python3.13/asyncio/base_events.py", line 40, in 208s from . import events 208s File "/usr/lib/python3.13/asyncio/events.py", line 862, in 208s from _asyncio import (_get_running_loop, _set_running_loop, 208s get_running_loop, get_event_loop) 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1124, in get_code 208s File "", line 719, in _classify_pyc 208s File "", line 89, in _unpack_uint32 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-4e08586f-1adb-45ce-ae18-296d5582728a.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38593 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36787 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e08586f-1adb-45ce-ae18-296d5582728a, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.250000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-3076dcbb-93f8-459d-8208-fe86e64cfdc9.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49749 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48015 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3076dcbb-93f8-459d-8208-fe86e64cfdc9, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 39.400000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e08586f-1adb-45ce-ae18-296d5582728a 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e08586f-1adb-45ce-ae18-296d5582728a 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 208s km.shutdown_kernel(before['kernel']['id']) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 8.080000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 208s 208s self = 208s 208s def test_modify_kernel_name(self): 208s before = self.sess_api.create('foo/nb1.ipynb').json() 208s sid = before['id'] 208s 208s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 208s self.assertEqual(after['id'], sid) 208s self.assertEqual(after['path'], before['path']) 208s self.assertEqual(after['type'], before['type']) 208s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 208s 208s # check kernel list, to be sure previous kernel was cleaned up 208s r = self.request('GET', 'api/kernels') 208s r.raise_for_status() 208s kernel_list = r.json() 208s after['kernel'].pop('last_activity') 208s [ k.pop('last_activity') for k in kernel_list ] 208s > self.assertEqual(kernel_list, [after['kernel']]) 208s E AssertionError: Lists differ: [{'id': '4e08586f-1adb-45ce-ae18-296d5582728a', 'na[176 chars]: 0}] != [{'id': '402d9a3c-ddb7-4091-bd63-59ff49a9e12b', 'na[60 chars]: 0}] 208s E 208s E First differing element 0: 208s E {'id': '4e08586f-1adb-45ce-ae18-296d5582728a', 'na[59 chars]': 0} 208s E {'id': '402d9a3c-ddb7-4091-bd63-59ff49a9e12b', 'na[59 chars]': 0} 208s E 208s E First list contains 1 additional elements. 208s E First extra element 1: 208s E {'id': '402d9a3c-ddb7-4091-bd63-59ff49a9e12b', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 208s E 208s E [{'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '4e08586f-1adb-45ce-ae18-296d5582728a', 208s E - 'name': 'python3'}, 208s E - {'connections': 0, 208s E 'execution_state': 'starting', 208s E 'id': '402d9a3c-ddb7-4091-bd63-59ff49a9e12b', 208s E 'name': 'python3'}] 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.650000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-402d9a3c-ddb7-4091-bd63-59ff49a9e12b.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41229 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57633 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 402d9a3c-ddb7-4091-bd63-59ff49a9e12b, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3076dcbb-93f8-459d-8208-fe86e64cfdc9 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 21.420000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 402d9a3c-ddb7-4091-bd63-59ff49a9e12b 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 402d9a3c-ddb7-4091-bd63-59ff49a9e12b 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1c6f3556-105c-4be6-9828-3000f9368c5b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s __________________ SessionAPITest.test_modify_path_deprecated __________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-5b20e5c6-c6d1-4f48-b895-7193ac35dffc.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47977 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50943 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b20e5c6-c6d1-4f48-b895-7193ac35dffc, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.640000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4 (::1) 1.770000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 12.730000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b20e5c6-c6d1-4f48-b895-7193ac35dffc 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b20e5c6-c6d1-4f48-b895-7193ac35dffc 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4 (::1) 23.550000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 208s import json 208s File "/usr/lib/python3.13/json/__init__.py", line 106, in 208s from .decoder import JSONDecoder, JSONDecodeError 208s File "/usr/lib/python3.13/json/decoder.py", line 15, in 208s NaN = float('nan') 208s KeyboardInterrupt 208s _______________________ SessionAPITest.test_modify_type ________________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/30624db3-c911-4194-a4d5-8ccf34a7dba5 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzc28kswr/runtime/kernel-4c688ed2-af13-4532-b17d-e140fcac2cd3.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59925 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53395 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c688ed2-af13-4532-b17d-e140fcac2cd3, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpzc28kswr/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 24.280000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/30624db3-c911-4194-a4d5-8ccf34a7dba5 (::1) 1.840000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b20e5c6-c6d1-4f48-b895-7193ac35dffc 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b20e5c6-c6d1-4f48-b895-7193ac35dffc 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cf9d11f3-caa3-4010-bfc4-fad39a2a05c4 (::1) 0.730000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c688ed2-af13-4532-b17d-e140fcac2cd3 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c688ed2-af13-4532-b17d-e140fcac2cd3 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/30624db3-c911-4194-a4d5-8ccf34a7dba5 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/30624db3-c911-4194-a4d5-8ccf34a7dba5', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 208s yielded = self.gen.send(value) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 208s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 208s stopper = ensure_async(km.shutdown_kernel(now, restart)) 208s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 208s return _runner_map[name].run(inner) 208s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 208s return fut.result(None) 208s ~~~~~~~~~~^^^^^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 208s return self.__get_result() 208s ~~~~~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 208s raise self._exception 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/30624db3-c911-4194-a4d5-8ccf34a7dba5 (::1) 6.960000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 208s from ._local import * 208s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 208s class PureWindowsPath(PurePath): 208s ...<7 lines>... 208s __slots__ = () 208s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 208s import ntpath 208s File "/usr/lib/python3.13/ntpath.py", line 514, in 208s from nt import _getfullpathname 208s File "", line 1349, in _find_and_load 208s KeyboardInterrupt 208s ---------------------------- Captured log teardown ----------------------------- 208s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c688ed2-af13-4532-b17d-e140fcac2cd3 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e08586f-1adb-45ce-ae18-296d5582728a 208s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 208s _______________________ AsyncSessionAPITest.test_create ________________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log setup ------------------------------ 208s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp65lyxof8/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp65lyxof8/etc/jupyter'] for config files 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp65lyxof8/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp65lyxof8/config 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp65lyxof8/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 208s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp65lyxof8/config 208s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp65lyxof8/notebooks 208s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 208s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 208s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 208s WARNING NotebookApp:handlers.py:612 Forbidden 208s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.370000ms referer=None 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-37816f65-2fab-42ba-8532-06c03895133c.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35479 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51691 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37816f65-2fab-42ba-8532-06c03895133c, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.720000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c (::1) 0.580000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37816f65-2fab-42ba-8532-06c03895133c 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37816f65-2fab-42ba-8532-06c03895133c 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c (::1) 10.440000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 208s from ._local import * 208s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 208s import grp 208s File "", line 1357, in _find_and_load 208s File "", line 417, in __enter__ 208s File "", line 456, in _get_module_lock 208s KeyboardInterrupt 208s _______________ AsyncSessionAPITest.test_create_console_session ________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/556ff4e7-f8de-4ad4-82db-083723face4b 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-53a9a02c-65d7-4852-86bd-922f2f0036ef.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44677 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41347 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 53a9a02c-65d7-4852-86bd-922f2f0036ef, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.150000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 5.890000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37816f65-2fab-42ba-8532-06c03895133c 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37816f65-2fab-42ba-8532-06c03895133c 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5ac43bfc-06ca-4581-ba73-fb5971504b6c (::1) 0.660000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53a9a02c-65d7-4852-86bd-922f2f0036ef 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53a9a02c-65d7-4852-86bd-922f2f0036ef 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/556ff4e7-f8de-4ad4-82db-083723face4b (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/556ff4e7-f8de-4ad4-82db-083723face4b', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/556ff4e7-f8de-4ad4-82db-083723face4b (::1) 6.270000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 6, in 208s import fnmatch 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1152, in get_code 208s File "", line 781, in _compile_bytecode 208s KeyboardInterrupt 208s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/98a106f9-ba0e-4ed8-a6d2-50c672ded1e7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-739af5ba-a9fa-451e-b9cb-81db0bd863f5.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55597 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47271 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 739af5ba-a9fa-451e-b9cb-81db0bd863f5, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.840000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53a9a02c-65d7-4852-86bd-922f2f0036ef 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53a9a02c-65d7-4852-86bd-922f2f0036ef 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/556ff4e7-f8de-4ad4-82db-083723face4b (::1) 0.510000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 739af5ba-a9fa-451e-b9cb-81db0bd863f5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 739af5ba-a9fa-451e-b9cb-81db0bd863f5 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/98a106f9-ba0e-4ed8-a6d2-50c672ded1e7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/98a106f9-ba0e-4ed8-a6d2-50c672ded1e7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernel/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 208s gc.collect() 208s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 208s manager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/98a106f9-ba0e-4ed8-a6d2-50c672ded1e7 (::1) 5.340000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 125, in 208s import enum 208s File "/usr/lib/python3.13/enum.py", line 1355, in 208s class StrEnum(str, ReprEnum): 208s ...<30 lines>... 208s return name.lower() 208s File "/usr/lib/python3.13/enum.py", line 489, in __prepare__ 208s enum_dict = EnumDict(cls) 208s KeyboardInterrupt 208s _________________ AsyncSessionAPITest.test_create_file_session _________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6ed2fb82-e5ed-4440-9601-cb44bf2a4f98 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Fatal Python error: init_import_site: Failed to import the site module 208s Python runtime state: initialized 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-518f9a84-0e20-4123-92be-c50aa8f88c25.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54799 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37451 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 518f9a84-0e20-4123-92be-c50aa8f88c25, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.470000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.870000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 739af5ba-a9fa-451e-b9cb-81db0bd863f5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 739af5ba-a9fa-451e-b9cb-81db0bd863f5 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/98a106f9-ba0e-4ed8-a6d2-50c672ded1e7 (::1) 2.230000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 518f9a84-0e20-4123-92be-c50aa8f88c25 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 518f9a84-0e20-4123-92be-c50aa8f88c25 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6ed2fb82-e5ed-4440-9601-cb44bf2a4f98 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6ed2fb82-e5ed-4440-9601-cb44bf2a4f98', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 208s 208s self = 208s 208s def test_create_with_kernel_id(self): 208s # create a new kernel 208s r = self.request('POST', 'api/kernels') 208s r.raise_for_status() 208s kernel = r.json() 208s 208s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 208s self.assertEqual(resp.status_code, 201) 208s newsession = resp.json() 208s self.assertIn('id', newsession) 208s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 208s self.assertEqual(newsession['kernel']['id'], kernel['id']) 208s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 208s 208s sessions = self.sess_api.list().json() 208s > self.assertEqual(sessions, [newsession]) 208s E AssertionError: Lists differ: [{'id': '6ed2fb82-e5ed-4440-9601-cb44bf2a4f98', 'p[553 chars]ne}}] != [{'id': '940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7', 'p[279 chars]ne}}] 208s E 208s E First differing element 0: 208s E {'id': '6ed2fb82-e5ed-4440-9601-cb44bf2a4f98', 'p[218 chars]: 0}} 208s E {'id': '940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7', 'p[278 chars]one}} 208s E 208s E First list contains 1 additional elements. 208s E First extra element 1: 208s E {'id': '940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '87505494-ae42-4fc6-8c2b-6a761b695abf', 'name': 'python3', 'last_activity': '2026-01-30T06:05:51.406458Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 208s E 208s E Diff is 830 characters long. Set self.maxDiff to None to see it. 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-87505494-ae42-4fc6-8c2b-6a761b695abf.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53827 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35407 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 87505494-ae42-4fc6-8c2b-6a761b695abf, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.050000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.670000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 518f9a84-0e20-4123-92be-c50aa8f88c25 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 518f9a84-0e20-4123-92be-c50aa8f88c25 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6ed2fb82-e5ed-4440-9601-cb44bf2a4f98 (::1) 0.690000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 87505494-ae42-4fc6-8c2b-6a761b695abf 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87505494-ae42-4fc6-8c2b-6a761b695abf 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/940f174a-c1e8-4a0b-bf7b-0f50ce4e29b7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 208s 208s self = 208s 208s def test_modify_kernel_id(self): 208s before = self.sess_api.create('foo/nb1.ipynb').json() 208s sid = before['id'] 208s 208s # create a new kernel 208s r = self.request('POST', 'api/kernels') 208s r.raise_for_status() 208s kernel = r.json() 208s 208s # Attach our session to the existing kernel 208s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 208s return self._req('PATCH', id, body) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 208s import jupyter_client 208s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 208s from .asynchronous import AsyncKernelClient 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 208s from .client import AsyncKernelClient # noqa 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 208s import zmq.asyncio 208s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 208s from zmq import sugar 208s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 208s from zmq.sugar import context, frame, poll, socket, tracker, version 208s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 208s from .socket import Socket, SyncSocket 208s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 208s _SocketType = TypeVar("_SocketType", bound="Socket") 208s File "/usr/lib/python3.13/typing.py", line 191, in _type_check 208s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms) 208s File "/usr/lib/python3.13/typing.py", line 169, in _type_convert 208s return ForwardRef(arg, module=module, is_class=allow_special_forms) 208s File "/usr/lib/python3.13/typing.py", line 1035, in __init__ 208s code = compile(arg_to_compile, '', 'eval') 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-13912d8f-1440-4f5e-b81a-e174d0715805.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60651 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60335 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 13912d8f-1440-4f5e-b81a-e174d0715805, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.600000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-0373c79a-c2f3-4484-bc21-5ff13cccf7fe.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50481 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41609 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.950000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 13912d8f-1440-4f5e-b81a-e174d0715805 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13912d8f-1440-4f5e-b81a-e174d0715805 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 208s yield maybe_future( 208s km.shutdown_kernel(before['kernel']['id']) 208s ) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 6.430000ms referer=None 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 208s 208s self = 208s 208s def test_modify_kernel_name(self): 208s before = self.sess_api.create('foo/nb1.ipynb').json() 208s sid = before['id'] 208s 208s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 208s self.assertEqual(after['id'], sid) 208s self.assertEqual(after['path'], before['path']) 208s self.assertEqual(after['type'], before['type']) 208s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 208s 208s # check kernel list, to be sure previous kernel was cleaned up 208s r = self.request('GET', 'api/kernels') 208s r.raise_for_status() 208s kernel_list = r.json() 208s after['kernel'].pop('last_activity') 208s [ k.pop('last_activity') for k in kernel_list ] 208s > self.assertEqual(kernel_list, [after['kernel']]) 208s E AssertionError: Lists differ: [{'id': '13912d8f-1440-4f5e-b81a-e174d0715805', 'n[177 chars]: 0}] != [{'id': '3f8599b6-685d-4cc6-b236-fd17d97a3324', 'n[61 chars]: 0}] 208s E 208s E First differing element 0: 208s E {'id': '13912d8f-1440-4f5e-b81a-e174d0715805', 'n[60 chars]': 0} 208s E {'id': '3f8599b6-685d-4cc6-b236-fd17d97a3324', 'n[60 chars]': 0} 208s E 208s E First list contains 1 additional elements. 208s E First extra element 1: 208s E {'id': '3f8599b6-685d-4cc6-b236-fd17d97a3324', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 208s E 208s E [{'connections': 0, 208s E - 'execution_state': 'starting', 208s E - 'id': '13912d8f-1440-4f5e-b81a-e174d0715805', 208s E - 'name': 'python3'}, 208s E - {'connections': 0, 208s E 'execution_state': 'starting', 208s E 'id': '3f8599b6-685d-4cc6-b236-fd17d97a3324', 208s E 'name': 'python3'}] 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 208s ---------------------------- Captured stderr setup ----------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 208s from ipykernel import kernelapp as app 208s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 208s from .connect import * # noqa: F403 208s ^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 208s from typing import TYPE_CHECKING, Any 208s File "/usr/lib/python3.13/typing.py", line 1726, in 208s class _CallableType(_SpecialGenericAlias, _root=True): 208s ...<29 lines>... 208s return self.copy_with(params) 208s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 208s @_tp_cache 208s ^^^^^^^^^ 208s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 208s return decorator(func) 208s File "/usr/lib/python3.13/typing.py", line 415, in decorator 208s def decorator(func): 208s 208s KeyboardInterrupt 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-3f8599b6-685d-4cc6-b236-fd17d97a3324.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58905 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39861 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f8599b6-685d-4cc6-b236-fd17d97a3324, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 13.710000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f8599b6-685d-4cc6-b236-fd17d97a3324 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f8599b6-685d-4cc6-b236-fd17d97a3324 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b241f2e4-6817-4631-8a69-2754bf38dee7', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-0cb3de8a-0752-4983-bf8c-ada141a7b218.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54421 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50407 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0cb3de8a-0752-4983-bf8c-ada141a7b218, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.880000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706 (::1) 1.450000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cb3de8a-0752-4983-bf8c-ada141a7b218 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb3de8a-0752-4983-bf8c-ada141a7b218 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s ERROR NotebookApp:log.py:55 { 208s "Host": "localhost:12341", 208s "Accept": "*/*", 208s "User-Agent": "python-requests/2.32.5" 208s } 208s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706 (::1) 5.620000ms referer=None 208s --------------------------- Captured stderr teardown --------------------------- 208s Traceback (most recent call last): 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 126, in 208s from . import _compiler, _parser 208s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 208s from . import _parser 208s File "/usr/lib/python3.13/re/_parser.py", line 15, in 208s from ._constants import * 208s File "", line 1360, in _find_and_load 208s File "", line 1331, in _find_and_load_unlocked 208s File "", line 935, in _load_unlocked 208s File "", line 1019, in exec_module 208s File "", line 1115, in get_code 208s File "", line 1214, in get_data 208s KeyboardInterrupt 208s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 208s 208s @self.addCleanup 208s def cleanup_sessions(): 208s for session in self.sess_api.list().json(): 208s > self.sess_api.delete(session['id']) 208s 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 208s return self._req('DELETE', id) 208s ^^^^^^^^^^^^^^^^^^^^^^^ 208s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 208s response.raise_for_status() 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s self = 208s 208s def raise_for_status(self): 208s """Raises :class:`HTTPError`, if one occurred.""" 208s 208s http_error_msg = "" 208s if isinstance(self.reason, bytes): 208s # We attempt to decode utf-8 first because some servers 208s # choose to localize their reason strings. If the string 208s # isn't utf-8, we fall back to iso-8859-1 for all other 208s # encodings. (See PR #3538) 208s try: 208s reason = self.reason.decode("utf-8") 208s except UnicodeDecodeError: 208s reason = self.reason.decode("iso-8859-1") 208s else: 208s reason = self.reason 208s 208s if 400 <= self.status_code < 500: 208s http_error_msg = ( 208s f"{self.status_code} Client Error: {reason} for url: {self.url}" 208s ) 208s 208s elif 500 <= self.status_code < 600: 208s http_error_msg = ( 208s f"{self.status_code} Server Error: {reason} for url: {self.url}" 208s ) 208s 208s if http_error_msg: 208s > raise HTTPError(http_error_msg, response=self) 208s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c0a2ecf5-2fbf-452c-9a77-63f42c65dd28 208s 208s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 208s ----------------------------- Captured stderr call ----------------------------- 208s Traceback (most recent call last): 208s ------------------------------ Captured log call ------------------------------- 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 208s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp65lyxof8/runtime/kernel-77cfb2e9-4876-4d96-8154-8f9c4d681a3f.json'] 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52799 208s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38455 208s INFO NotebookApp:kernelmanager.py:179 Kernel started: 77cfb2e9-4876-4d96-8154-8f9c4d681a3f, name: python3 208s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp65lyxof8/notebooks/foo'} 208s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.260000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c0a2ecf5-2fbf-452c-9a77-63f42c65dd28 (::1) 0.530000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cb3de8a-0752-4983-bf8c-ada141a7b218 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb3de8a-0752-4983-bf8c-ada141a7b218 208s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f7d793ec-d674-470c-99e6-b0bdc7d0f706 (::1) 1.750000ms 208s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 208s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 77cfb2e9-4876-4d96-8154-8f9c4d681a3f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 77cfb2e9-4876-4d96-8154-8f9c4d681a3f 208s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c0a2ecf5-2fbf-452c-9a77-63f42c65dd28 (::1) 208s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c0a2ecf5-2fbf-452c-9a77-63f42c65dd28', version='HTTP/1.1', remote_ip='::1') 208s Traceback (most recent call last): 208s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 208s result = await result 208s ^^^^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 208s future.result() 208s ~~~~~~~~~~~~~^^ 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 208s yield maybe_future(sm.delete_session(session_id)) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 208s yielded = self.gen.throw(exc) 208s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 208s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 208s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 208s value = future.result() 208s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 208s raise self._exception.with_traceback(self._exception_tb) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 208s result = coro.send(None) 208s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 208s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 208s raise km.ready.exception() # type: ignore[misc] 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 208s await kernel_awaitable 208s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 208s result = await obj 208s ^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 208s raise e 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 208s out = await method(self, *args, **kwargs) 208s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 208s await self._async_finish_shutdown(restart=restart) 208s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 208s await asyncio.wait_for( 208s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 208s ) 208s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 208s async with timeouts.timeout(timeout): 208s ~~~~~~~~~~~~~~~~^^^^^^^^^ 208s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 208s raise RuntimeError("Timeout should be used inside a task") 208s RuntimeError: Timeout should be used inside a task 208s WARNING NotebookApp:handlers.py:612 Unhandled error 208s --------------------------- Captured stderr teardown --------------------------- 208s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 208s return _run_code(code, main_globals, None, 208s "__main__", mod_spec) 208s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 208s exec(code, run_globals) 208s ~~~~^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 208s from pathlib import Path 208s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 208s from ._abc import * 208s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 208s from glob import _Globber, _no_recurse_symlinks 208s File "/usr/lib/python3.13/glob.py", line 5, in 208s import re 208s File "/usr/lib/python3.13/re/__init__.py", line 143, in 208s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 208s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 208s setattr(enum_class, name, member) 208s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 208s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 208s super().__setattr__(name, value) 208s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 208s KeyboardInterrupt 208s ---------------------------- Captured log teardown ----------------------------- 208s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37816f65-2fab-42ba-8532-06c03895133c 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53a9a02c-65d7-4852-86bd-922f2f0036ef 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87505494-ae42-4fc6-8c2b-6a761b695abf 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f8599b6-685d-4cc6-b236-fd17d97a3324 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 739af5ba-a9fa-451e-b9cb-81db0bd863f5 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 13912d8f-1440-4f5e-b81a-e174d0715805 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 518f9a84-0e20-4123-92be-c50aa8f88c25 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cb3de8a-0752-4983-bf8c-ada141a7b218 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 77cfb2e9-4876-4d96-8154-8f9c4d681a3f 208s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0373c79a-c2f3-4484-bc21-5ff13cccf7fe 208s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 208s =============================== warnings summary =============================== 208s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 208s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 208s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 208s return LooseVersion(v) >= LooseVersion(check) 208s 208s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 208s auth/tests/test_login.py: 2 warnings 208s bundler/tests/test_bundler_api.py: 2 warnings 208s services/api/tests/test_api.py: 4 warnings 208s services/config/tests/test_config_api.py: 7 warnings 208s services/contents/tests/test_contents_api.py: 318 warnings 208s services/kernels/tests/test_kernels_api.py: 113 warnings 208s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 208s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 208s services/sessions/tests/test_sessionmanager.py: 9 warnings 208s services/sessions/tests/test_sessions_api.py: 128 warnings 208s terminal/tests/test_terminals_api.py: 50 warnings 208s tests/test_files.py: 2 warnings 208s tests/test_gateway.py: 21 warnings 208s tests/test_notebookapp.py: 8 warnings 208s tests/test_paths.py: 2 warnings 208s tree/tests/test_tree_handler.py: 2 warnings 208s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 208s dt = unaware(*args, **kwargs) 208s 208s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 208s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 208s pytestmark = pytest.mark.integration_tests 208s 208s auth/tests/test_login.py: 3 warnings 208s bundler/tests/test_bundler_api.py: 3 warnings 208s services/api/tests/test_api.py: 3 warnings 208s services/config/tests/test_config_api.py: 3 warnings 208s services/contents/tests/test_contents_api.py: 6 warnings 208s services/kernels/tests/test_kernels_api.py: 12 warnings 208s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 208s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 208s services/sessions/tests/test_sessions_api.py: 6 warnings 208s terminal/tests/test_terminals_api.py: 6 warnings 208s tests/test_files.py: 3 warnings 208s tests/test_gateway.py: 3 warnings 208s tests/test_notebookapp.py: 11 warnings 208s tests/test_paths.py: 3 warnings 208s tree/tests/test_tree_handler.py: 3 warnings 208s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 208s policy = events.get_event_loop_policy() 208s 208s auth/tests/test_login.py: 9 warnings 208s bundler/tests/test_bundler_api.py: 9 warnings 208s services/api/tests/test_api.py: 9 warnings 208s services/config/tests/test_config_api.py: 9 warnings 208s services/contents/tests/test_contents_api.py: 18 warnings 208s services/kernels/tests/test_kernels_api.py: 47 warnings 208s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 208s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 208s services/sessions/tests/test_sessionmanager.py: 18 warnings 208s services/sessions/tests/test_sessions_api.py: 19 warnings 208s terminal/tests/test_terminals_api.py: 18 warnings 208s tests/test_files.py: 9 warnings 208s tests/test_gateway.py: 9 warnings 208s tests/test_notebookapp.py: 28 warnings 208s tests/test_paths.py: 9 warnings 208s tree/tests/test_tree_handler.py: 9 warnings 208s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 208s loop = events.get_event_loop_policy().get_event_loop() 208s 208s bundler/tests/test_bundler_api.py: 6 warnings 208s services/api/tests/test_api.py: 6 warnings 208s services/contents/tests/test_contents_api.py: 806 warnings 208s services/contents/tests/test_largefilemanager.py: 42 warnings 208s services/contents/tests/test_manager.py: 526 warnings 208s tests/test_files.py: 8 warnings 208s tree/tests/test_tree_handler.py: 6 warnings 208s /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). 208s dt = unaware(*args, **kwargs) 208s 208s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 208s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 208s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 208s loop.make_current() 208s 208s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 208s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 208s /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/tmpwudm_748/data/kernels/sample 2 208s d = self.find_kernel_specs() 208s 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 208s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 208s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3014) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 208s pid, fd = os.forkpty() 208s 208s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 208s :963: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 208s Enable tracemalloc to get traceback where the object was allocated. 208s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 208s 208s tests/test_files.py::FilesTest::test_contents_manager 208s /usr/lib/python3/dist-packages/traitlets/config/loader.py:1022: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 208s argparse_traits[argname] = (trait, argparse_kwds) 208s Enable tracemalloc to get traceback where the object was allocated. 208s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 208s 208s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 208s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 208s /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). 208s dt = datetime.utcnow().isoformat() + 'Z' 208s 208s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 208s =========================== short test summary info ============================ 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 208s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 208s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 208s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 208s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 208s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 208s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 208s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 208s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 208s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 208s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 208s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 208s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 208s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2407 warnings, 8 errors in 43.08s = 209s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 209s *** 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 220s ============================= test session starts ============================== 220s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 220s rootdir: /tmp/autopkgtest.n0cVOx/autopkgtest_tmp 220s plugins: typeguard-4.4.4 220s collected 330 items / 303 deselected / 27 selected 220s run-last-failure: rerun previous 27 failures 220s 225s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 227s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 227s 227s ==================================== ERRORS ==================================== 227s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 227s 227s self = 227s 227s def tearDown(self): 227s for k in self.kern_api.list().json(): 227s > self.kern_api.shutdown(k['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 227s import asyncio 227s File "/usr/lib/python3.13/asyncio/__init__.py", line 17, in 227s from .streams import * 227s File "/usr/lib/python3.13/asyncio/streams.py", line 309, in 227s class StreamWriter: 227s ...<100 lines>... 227s warnings.warn(f"unclosed {self!r}", ResourceWarning) 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-1827d550-8e54-431c-9bec-a53bb836c2f1.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53747 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57299 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1827d550-8e54-431c-9bec-a53bb836c2f1, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 47.400000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 14.250000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58173 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53627 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 47.450000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.730000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9 227s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9/interrupt (::1) 13.220000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 227s yield maybe_future(km.restart_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 227s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 227s await ensure_async(kernel.restart_kernel(now=now)) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 227s await self._async_shutdown_kernel(now=now, restart=True) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9/restart (::1) 9.780000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.530000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1827d550-8e54-431c-9bec-a53bb836c2f1 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1827d550-8e54-431c-9bec-a53bb836c2f1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 227s yielded = ctx_run(next, result) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 (::1) 23.430000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 3, in 227s from ._version import __version__, protocol_version, protocol_version_info, version_info 227s File "", line 1360, in _find_and_load 227s File "", line 1331, in _find_and_load_unlocked 227s File "", line 921, in _load_unlocked 227s File "", line 819, in module_from_spec 227s File "", line 798, in _init_module_attrs 227s File "", line 638, in cached 227s File "", line 642, in _get_cached 227s File "", line 535, in cache_from_source 227s File "", line 137, in _path_split 227s KeyboardInterrupt 227s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 227s 227s self = 227s 227s def tearDown(self): 227s for k in self.kern_api.list().json(): 227s > self.kern_api.shutdown(k['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 227s from subprocess import PIPE, Popen 227s File "/usr/lib/python3.13/subprocess.py", line 49, in 227s import signal 227s File "/usr/lib/python3.13/signal.py", line 19, in 227s _IntEnum._convert_( 227s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 227s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 227s File "/usr/lib/python3.13/enum.py", line 1928, in convert_class 227s enum_class.__new__ = Enum.__new__ 227s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 227s member_map = cls.__dict__.get('_member_map_', {}) 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-8d5c568b-fbdb-4bec-9979-04852efdfa73.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42743 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33557 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d5c568b-fbdb-4bec-9979-04852efdfa73, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.070000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.420000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-5b6ec075-bf4c-48d5-89ee-b0143e1acecd.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33673 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34417 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b6ec075-bf4c-48d5-89ee-b0143e1acecd, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.390000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5b6ec075-bf4c-48d5-89ee-b0143e1acecd 227s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd/interrupt (::1) 0.600000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 227s yield maybe_future(km.restart_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 227s result = coro.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 227s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 227s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 227s yield self # This tells Task to wait for completion. 227s ^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 227s await ensure_async(kernel.restart_kernel(now=now)) 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 227s await self._async_shutdown_kernel(now=now, restart=True) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd/restart (::1) 2.730000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 (::1) 5.160000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 227s import asyncio 227s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 227s from .base_events import * 227s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 227s import ssl 227s File "/usr/lib/python3.13/ssl.py", line 100, in 227s import _ssl # if we can't import it, let the error propagate 227s ^^^^^^^^^^^ 227s KeyboardInterrupt 227s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-40e13c88-7a97-4595-8ba4-9181e34dcf61.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53743 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57187 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 40e13c88-7a97-4595-8ba4-9181e34dcf61, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.990000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.030000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3177dc13-1cdd-4466-a8e9-97913e41f3c4 (::1) 9.630000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 5.960000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 227s from zmq import backend 227s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 227s _ns = select_backend(first) 227s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 227s mod = import_module(name) 227s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 227s return _bootstrap._gcd_import(name[level:], package, level) 227s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 227s from . import _zmq 227s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 227s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 314, in 227s class NormMode(IntEnum): 227s ...<14 lines>... 227s CCE_ECNONLY = 4 227s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 227s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 227s File "/usr/lib/python3.13/enum.py", line 251, in __set_name__ 227s def __set_name__(self, enum_class, member_name): 227s 227s KeyboardInterrupt 227s Error calling __set_name__ on '_proto_member' instance 'FIXED' in 'NormMode' 227s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-2f9a93a0-2f42-4540-a381-15eff29fe828.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59367 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35813 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2f9a93a0-2f42-4540-a381-15eff29fe828, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 6.820000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/98d1d206-283c-451b-8efd-78012e9f737b (::1) 0.670000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2f9a93a0-2f42-4540-a381-15eff29fe828 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2f9a93a0-2f42-4540-a381-15eff29fe828 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 5.340000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 227s from subprocess import PIPE, Popen 227s File "", line 1360, in _find_and_load 227s File "", line 1331, in _find_and_load_unlocked 227s File "", line 935, in _load_unlocked 227s File "", line 1019, in exec_module 227s File "", line 1152, in get_code 227s File "", line 781, in _compile_bytecode 227s KeyboardInterrupt 227s =================================== FAILURES =================================== 227s ______________________ KernelAPITest.test_default_kernel _______________________ 227s 227s self = 227s 227s def tearDown(self): 227s for k in self.kern_api.list().json(): 227s > self.kern_api.shutdown(k['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f6908a55-123e-48f3-873b-45cf86e648f2 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log setup ------------------------------ 227s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp6fwi8_5y/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp6fwi8_5y/etc/jupyter'] for config files 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6fwi8_5y/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp6fwi8_5y/config 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6fwi8_5y/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp6fwi8_5y/config 227s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp6fwi8_5y/notebooks 227s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 227s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 227s WARNING NotebookApp:handlers.py:612 Forbidden 227s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.920000ms referer=None 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-f6908a55-123e-48f3-873b-45cf86e648f2.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50293 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45915 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: f6908a55-123e-48f3-873b-45cf86e648f2, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 126.820000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6908a55-123e-48f3-873b-45cf86e648f2 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6908a55-123e-48f3-873b-45cf86e648f2 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f6908a55-123e-48f3-873b-45cf86e648f2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f6908a55-123e-48f3-873b-45cf86e648f2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 227s yielded = ctx_run(next, result) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f6908a55-123e-48f3-873b-45cf86e648f2 (::1) 19.260000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s Traceback (most recent call last): 227s ______________________ KernelAPITest.test_kernel_handler _______________________ 227s 227s self = 227s 227s def test_kernel_handler(self): 227s # GET kernel with given id 227s kid = self.kern_api.start().json()['id'] 227s r = self.kern_api.get(kid) 227s kern1 = r.json() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(kern1, dict) 227s self.assertIn('id', kern1) 227s self.assertEqual(kern1['id'], kid) 227s 227s # Request a bad kernel id and check that a JSON 227s # message is returned! 227s bad_id = '111-111-111-111-111' 227s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 227s self.kern_api.get(bad_id) 227s 227s # DELETE kernel with id 227s > r = self.kern_api.shutdown(kid) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 227s from zmq import backend 227s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 227s _ns = select_backend(first) 227s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 227s mod = import_module(name) 227s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 227s return _bootstrap._gcd_import(name[level:], package, level) 227s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 227s from . import _zmq 227s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 227s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 434, in 227s class DeviceType(IntEnum): 227s ...<7 lines>... 227s QUEUE = 3 227s File "/usr/lib/python3.13/enum.py", line 609, in __new__ 227s data_type_method = getattr(member_type, name) 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-0b2105a5-9385-4242-8f9a-996ca1004f36.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56087 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52717 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b2105a5-9385-4242-8f9a-996ca1004f36, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 95.740000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36 (::1) 0.510000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s 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 227s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 227s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.150000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b2105a5-9385-4242-8f9a-996ca1004f36 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b2105a5-9385-4242-8f9a-996ca1004f36 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 227s yielded = ctx_run(next, result) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36 (::1) 87.570000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.510000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f6908a55-123e-48f3-873b-45cf86e648f2 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f6908a55-123e-48f3-873b-45cf86e648f2 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f6908a55-123e-48f3-873b-45cf86e648f2 (::1) 0.500000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b2105a5-9385-4242-8f9a-996ca1004f36 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b2105a5-9385-4242-8f9a-996ca1004f36 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0b2105a5-9385-4242-8f9a-996ca1004f36 (::1) 0.570000ms 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 227s import asyncio 227s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 227s from .base_events import * 227s File "", line 1360, in _find_and_load 227s File "", line 1331, in _find_and_load_unlocked 227s File "", line 935, in _load_unlocked 227s File "", line 1019, in exec_module 227s File "", line 1152, in get_code 227s File "", line 781, in _compile_bytecode 227s KeyboardInterrupt 227s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 227s 227s self = 227s 227s def test_main_kernel_handler(self): 227s # POST request 227s r = self.kern_api.start() 227s kern1 = r.json() 227s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 227s self.assertEqual(r.status_code, 201) 227s self.assertIsInstance(kern1, dict) 227s 227s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 227s expected_csp = '; '.join([ 227s "frame-ancestors 'self'", 227s 'report-uri ' + report_uri, 227s "default-src 'none'" 227s ]) 227s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 227s 227s # GET request 227s r = self.kern_api.list() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(r.json(), list) 227s self.assertEqual(r.json()[0]['id'], kern1['id']) 227s self.assertEqual(r.json()[0]['name'], kern1['name']) 227s 227s # create another kernel and check that they both are added to the 227s # list of kernels from a GET request 227s kern2 = self.kern_api.start().json() 227s assert isinstance(kern2, dict) 227s r = self.kern_api.list() 227s kernels = r.json() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(kernels, list) 227s self.assertEqual(len(kernels), 2) 227s 227s # Interrupt a kernel 227s r = self.kern_api.interrupt(kern2['id']) 227s self.assertEqual(r.status_code, 204) 227s 227s # Restart a kernel 227s > r = self.kern_api.restart(kern2['id']) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 227s return self._req('POST', url_path_join(id, 'restart')) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9/restart 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 227s import asyncio 227s File "/usr/lib/python3.13/asyncio/__init__.py", line 17, in 227s from .streams import * 227s File "/usr/lib/python3.13/asyncio/streams.py", line 309, in 227s class StreamWriter: 227s ...<100 lines>... 227s warnings.warn(f"unclosed {self!r}", ResourceWarning) 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-1827d550-8e54-431c-9bec-a53bb836c2f1.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53747 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57299 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1827d550-8e54-431c-9bec-a53bb836c2f1, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 47.400000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 14.250000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp6fwi8_5y/runtime/kernel-e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58173 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53627 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 47.450000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.730000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9 227s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9/interrupt (::1) 13.220000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 227s yield maybe_future(km.restart_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 227s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 227s await ensure_async(kernel.restart_kernel(now=now)) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 227s await self._async_shutdown_kernel(now=now, restart=True) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9/restart (::1) 9.780000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.530000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1827d550-8e54-431c-9bec-a53bb836c2f1 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1827d550-8e54-431c-9bec-a53bb836c2f1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 227s yielded = ctx_run(next, result) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 (::1) 23.430000ms referer=None 227s ________________________ KernelAPITest.test_no_kernels _________________________ 227s 227s self = 227s 227s def test_no_kernels(self): 227s """Make sure there are no kernels running at the start""" 227s kernels = self.kern_api.list().json() 227s > self.assertEqual(kernels, []) 227s E AssertionError: Lists differ: [{'id': '1827d550-8e54-431c-9bec-a53bb836c[281 chars]: 0}] != [] 227s E 227s E First list contains 2 additional elements. 227s E First extra element 0: 227s E {'id': '1827d550-8e54-431c-9bec-a53bb836c2f1', 'name': 'python3', 'last_activity': '2026-01-30T06:06:18.371170Z', 'execution_state': 'starting', 'connections': 0} 227s E 227s E + [] 227s E - [{'connections': 0, 227s E - 'execution_state': 'starting', 227s E - 'id': '1827d550-8e54-431c-9bec-a53bb836c2f1', 227s E - 'last_activity': '2026-01-30T06:06:18.371170Z', 227s E - 'name': 'python3'}, 227s E - {'connections': 0, 227s E - 'execution_state': 'starting', 227s E - 'id': 'e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9', 227s E - 'last_activity': '2026-01-30T06:06:18.437208Z', 227s E - 'name': 'python3'}] 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.000000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1827d550-8e54-431c-9bec-a53bb836c2f1 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1827d550-8e54-431c-9bec-a53bb836c2f1 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1827d550-8e54-431c-9bec-a53bb836c2f1 (::1) 1.790000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e897ee2d-cdf4-4b00-a1ab-ae16e65f2bf9 (::1) 0.740000ms 227s ---------------------------- Captured log teardown ----------------------------- 227s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 227s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 227s _____________________ AsyncKernelAPITest.test_connections ______________________ 227s 227s self = 227s 227s def tearDown(self): 227s for k in self.kern_api.list().json(): 227s > self.kern_api.shutdown(k['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log setup ------------------------------ 227s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7d726k0s/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7d726k0s/etc/jupyter'] for config files 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7d726k0s/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7d726k0s/config 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7d726k0s/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7d726k0s/config 227s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7d726k0s/notebooks 227s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 227s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 227s WARNING NotebookApp:handlers.py:612 Forbidden 227s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.350000ms referer=None 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-728a4d8d-b803-4372-a571-3ec105412852.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40563 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39655 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 728a4d8d-b803-4372-a571-3ec105412852, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.910000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 0.570000ms 227s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852/channels 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 227s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34159 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (starting) 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (busy) 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (idle) 227s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 227s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 728a4d8d-b803-4372-a571-3ec105412852) to 5.4 (client). 227s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852/channels (::1) 1522.170000ms 227s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852/channels 227s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39655 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34159 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40563 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56339 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34159 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40563 227s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 227s Setting websocket_ping_timeout=30000 227s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (busy) 227s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (idle) 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (busy) 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 0.860000ms 227s DEBUG NotebookApp:kernelmanager.py:423 activity on 728a4d8d-b803-4372-a571-3ec105412852: status (idle) 227s DEBUG NotebookApp:handlers.py:579 Websocket closed 728a4d8d-b803-4372-a571-3ec105412852:71f54d6e-b2a65e565ccca75c1d899b1e 227s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 728a4d8d-b803-4372-a571-3ec105412852:71f54d6e-b2a65e565ccca75c1d899b1e 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 0.490000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 0.360000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 728a4d8d-b803-4372-a571-3ec105412852 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 728a4d8d-b803-4372-a571-3ec105412852 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 6.430000ms referer=None 227s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 227s 227s self = 227s 227s def tearDown(self): 227s for k in self.kern_api.list().json(): 227s > self.kern_api.shutdown(k['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b853e49b-3fea-4f28-bb0f-b93900fd366a 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-b853e49b-3fea-4f28-bb0f-b93900fd366a.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53249 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45471 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: b853e49b-3fea-4f28-bb0f-b93900fd366a, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.580000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 6.290000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 728a4d8d-b803-4372-a571-3ec105412852 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 728a4d8d-b803-4372-a571-3ec105412852 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/728a4d8d-b803-4372-a571-3ec105412852 (::1) 0.510000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b853e49b-3fea-4f28-bb0f-b93900fd366a 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b853e49b-3fea-4f28-bb0f-b93900fd366a 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b853e49b-3fea-4f28-bb0f-b93900fd366a (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b853e49b-3fea-4f28-bb0f-b93900fd366a', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s --------------------------- Captured stderr teardown --------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 227s from pathlib import Path 227s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 227s from ._abc import * 227s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 227s import functools 227s File "/usr/lib/python3.13/functools.py", line 18, in 227s from collections import namedtuple 227s File "/usr/lib/python3.13/collections/__init__.py", line 66, in 227s class _OrderedDictKeysView(_collections_abc.KeysView): 227s ...<2 lines>... 227s yield from reversed(self._mapping) 227s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 227s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 227s KeyboardInterrupt 227s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 227s 227s self = 227s 227s def test_kernel_handler(self): 227s # GET kernel with given id 227s kid = self.kern_api.start().json()['id'] 227s r = self.kern_api.get(kid) 227s kern1 = r.json() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(kern1, dict) 227s self.assertIn('id', kern1) 227s self.assertEqual(kern1['id'], kid) 227s 227s # Request a bad kernel id and check that a JSON 227s # message is returned! 227s bad_id = '111-111-111-111-111' 227s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 227s self.kern_api.get(bad_id) 227s 227s # DELETE kernel with id 227s > r = self.kern_api.shutdown(kid) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Fatal Python error: init_import_site: Failed to import the site module 227s Python runtime state: initialized 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/site.py", line 735, in 227s main() 227s ~~~~^^ 227s File "/usr/lib/python3.13/site.py", line 722, in main 227s known_paths = addsitepackages(known_paths) 227s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 227s addsitedir(sitedir, known_paths) 227s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 227s addpackage(sitedir, name, known_paths) 227s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3.13/site.py", line 213, in addpackage 227s exec(line) 227s ~~~~^^^^^^ 227s File "", line 1, in 227s File "", line 1360, in _find_and_load 227s File "", line 1322, in _find_and_load_unlocked 227s File "", line 1262, in _find_spec 227s File "", line 1556, in find_spec 227s File "", line 1530, in _get_spec 227s File "", line 1633, in find_spec 227s File "", line 1676, in _fill_cache 227s KeyboardInterrupt 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-bdf4d1d7-1964-4651-b1cf-bdfeca649a04.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57985 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54909 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: bdf4d1d7-1964-4651-b1cf-bdfeca649a04, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.210000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04 (::1) 0.460000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s 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 227s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 227s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.640000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04 (::1) 60.050000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 50.240000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b853e49b-3fea-4f28-bb0f-b93900fd366a 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b853e49b-3fea-4f28-bb0f-b93900fd366a 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b853e49b-3fea-4f28-bb0f-b93900fd366a (::1) 0.700000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bdf4d1d7-1964-4651-b1cf-bdfeca649a04 (::1) 0.700000ms 227s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 227s 227s self = 227s 227s def test_main_kernel_handler(self): 227s # POST request 227s r = self.kern_api.start() 227s kern1 = r.json() 227s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 227s self.assertEqual(r.status_code, 201) 227s self.assertIsInstance(kern1, dict) 227s 227s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 227s expected_csp = '; '.join([ 227s "frame-ancestors 'self'", 227s 'report-uri ' + report_uri, 227s "default-src 'none'" 227s ]) 227s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 227s 227s # GET request 227s r = self.kern_api.list() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(r.json(), list) 227s self.assertEqual(r.json()[0]['id'], kern1['id']) 227s self.assertEqual(r.json()[0]['name'], kern1['name']) 227s 227s # create another kernel and check that they both are added to the 227s # list of kernels from a GET request 227s kern2 = self.kern_api.start().json() 227s assert isinstance(kern2, dict) 227s r = self.kern_api.list() 227s kernels = r.json() 227s self.assertEqual(r.status_code, 200) 227s assert isinstance(kernels, list) 227s self.assertEqual(len(kernels), 2) 227s 227s # Interrupt a kernel 227s r = self.kern_api.interrupt(kern2['id']) 227s self.assertEqual(r.status_code, 204) 227s 227s # Restart a kernel 227s > r = self.kern_api.restart(kern2['id']) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 227s return self._req('POST', url_path_join(id, 'restart')) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd/restart 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 227s from subprocess import PIPE, Popen 227s File "/usr/lib/python3.13/subprocess.py", line 49, in 227s import signal 227s File "/usr/lib/python3.13/signal.py", line 19, in 227s _IntEnum._convert_( 227s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 227s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 227s File "/usr/lib/python3.13/enum.py", line 1928, in convert_class 227s enum_class.__new__ = Enum.__new__ 227s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 227s member_map = cls.__dict__.get('_member_map_', {}) 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-8d5c568b-fbdb-4bec-9979-04852efdfa73.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42743 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33557 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d5c568b-fbdb-4bec-9979-04852efdfa73, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.070000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.420000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7d726k0s/runtime/kernel-5b6ec075-bf4c-48d5-89ee-b0143e1acecd.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33673 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34417 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b6ec075-bf4c-48d5-89ee-b0143e1acecd, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.390000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5b6ec075-bf4c-48d5-89ee-b0143e1acecd 227s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd/interrupt (::1) 0.600000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 227s yield maybe_future(km.restart_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 227s result = coro.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 227s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 227s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 227s yield self # This tells Task to wait for completion. 227s ^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 227s await ensure_async(kernel.restart_kernel(now=now)) 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 227s await self._async_shutdown_kernel(now=now, restart=True) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd/restart (::1) 2.730000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 227s yield maybe_future(km.shutdown_kernel(kernel_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 (::1) 5.160000ms referer=None 227s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 227s 227s self = 227s 227s def test_no_kernels(self): 227s """Make sure there are no kernels running at the start""" 227s kernels = self.kern_api.list().json() 227s > self.assertEqual(kernels, []) 227s E AssertionError: Lists differ: [{'id': '8d5c568b-fbdb-4bec-9979-04852efdf[281 chars]: 0}] != [] 227s E 227s E First list contains 2 additional elements. 227s E First extra element 0: 227s E {'id': '8d5c568b-fbdb-4bec-9979-04852efdfa73', 'name': 'python3', 'last_activity': '2026-01-30T06:06:21.765117Z', 'execution_state': 'starting', 'connections': 0} 227s E 227s E + [] 227s E - [{'connections': 0, 227s E - 'execution_state': 'starting', 227s E - 'id': '8d5c568b-fbdb-4bec-9979-04852efdfa73', 227s E - 'last_activity': '2026-01-30T06:06:21.765117Z', 227s E - 'name': 'python3'}, 227s E - {'connections': 0, 227s E - 'execution_state': 'starting', 227s E - 'id': '5b6ec075-bf4c-48d5-89ee-b0143e1acecd', 227s E - 'last_activity': '2026-01-30T06:06:21.784558Z', 227s E - 'name': 'python3'}] 227s 227s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.680000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.330000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8d5c568b-fbdb-4bec-9979-04852efdfa73 (::1) 0.490000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b6ec075-bf4c-48d5-89ee-b0143e1acecd 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b6ec075-bf4c-48d5-89ee-b0143e1acecd 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5b6ec075-bf4c-48d5-89ee-b0143e1acecd (::1) 0.980000ms 227s ---------------------------- Captured log teardown ----------------------------- 227s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b853e49b-3fea-4f28-bb0f-b93900fd366a 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 728a4d8d-b803-4372-a571-3ec105412852 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5c568b-fbdb-4bec-9979-04852efdfa73 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bdf4d1d7-1964-4651-b1cf-bdfeca649a04 227s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 227s __________________________ SessionAPITest.test_create __________________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log setup ------------------------------ 227s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwciwnbih/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwciwnbih/etc/jupyter'] for config files 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwciwnbih/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwciwnbih/config 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwciwnbih/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwciwnbih/config 227s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwciwnbih/notebooks 227s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 227s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 227s WARNING NotebookApp:handlers.py:612 Forbidden 227s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.620000ms referer=None 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-8da4f708-fd59-49e9-8764-8e150220449c.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37973 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41807 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8da4f708-fd59-49e9-8764-8e150220449c, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 26.930000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d (::1) 0.500000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8da4f708-fd59-49e9-8764-8e150220449c 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8da4f708-fd59-49e9-8764-8e150220449c 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d (::1) 5.840000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 227s import jupyter_client 227s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 227s from .asynchronous import AsyncKernelClient 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 227s from .client import AsyncKernelClient # noqa 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 227s import zmq.asyncio 227s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 227s from zmq import backend 227s File "", line 1360, in _find_and_load 227s File "", line 1331, in _find_and_load_unlocked 227s File "", line 935, in _load_unlocked 227s File "", line 1019, in exec_module 227s File "", line 1115, in get_code 227s File "", line 1214, in get_data 227s KeyboardInterrupt 227s __________________ SessionAPITest.test_create_console_session __________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1dc9c6fa-75ff-49fb-8c2d-0eaacd3ec045 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-074d6838-3ac5-4933-af3d-7750714055e0.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34341 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55567 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 074d6838-3ac5-4933-af3d-7750714055e0, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 26.710000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8da4f708-fd59-49e9-8764-8e150220449c 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8da4f708-fd59-49e9-8764-8e150220449c 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e524f0c7-06ad-4ae8-8e3b-07fb7d27126d (::1) 0.720000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 074d6838-3ac5-4933-af3d-7750714055e0 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 074d6838-3ac5-4933-af3d-7750714055e0 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1dc9c6fa-75ff-49fb-8c2d-0eaacd3ec045 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1dc9c6fa-75ff-49fb-8c2d-0eaacd3ec045', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ____________________ SessionAPITest.test_create_deprecated _____________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/765cabdd-fcfe-407f-8f79-936cf199b66f 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 227s from pathlib import Path 227s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 227s from ._abc import * 227s File "", line 1360, in _find_and_load 227s File "", line 1331, in _find_and_load_unlocked 227s File "", line 935, in _load_unlocked 227s File "", line 1019, in exec_module 227s File "", line 1152, in get_code 227s File "", line 781, in _compile_bytecode 227s KeyboardInterrupt 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-c9565a7b-2377-4911-8eb5-938a5bb5d5d6.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47265 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48965 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: c9565a7b-2377-4911-8eb5-938a5bb5d5d6, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.410000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 074d6838-3ac5-4933-af3d-7750714055e0 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 074d6838-3ac5-4933-af3d-7750714055e0 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1dc9c6fa-75ff-49fb-8c2d-0eaacd3ec045 (::1) 0.900000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9565a7b-2377-4911-8eb5-938a5bb5d5d6 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9565a7b-2377-4911-8eb5-938a5bb5d5d6 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/765cabdd-fcfe-407f-8f79-936cf199b66f (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/765cabdd-fcfe-407f-8f79-936cf199b66f', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ___________________ SessionAPITest.test_create_file_session ____________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3177dc13-1cdd-4466-a8e9-97913e41f3c4 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40421 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60117 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.520000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c9565a7b-2377-4911-8eb5-938a5bb5d5d6 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c9565a7b-2377-4911-8eb5-938a5bb5d5d6 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/765cabdd-fcfe-407f-8f79-936cf199b66f (::1) 0.730000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3177dc13-1cdd-4466-a8e9-97913e41f3c4 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3177dc13-1cdd-4466-a8e9-97913e41f3c4', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 227s from pathlib import Path 227s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 227s from ._abc import * 227s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 227s from glob import _Globber, _no_recurse_symlinks 227s File "/usr/lib/python3.13/glob.py", line 5, in 227s import re 227s File "/usr/lib/python3.13/re/__init__.py", line 374, in 227s @functools.lru_cache(_MAXCACHE) 227s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 227s File "/usr/lib/python3.13/functools.py", line 544, in decorating_function 227s def decorating_function(user_function): 227s 227s KeyboardInterrupt 227s Traceback (most recent call last): 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 227s from subprocess import PIPE, Popen 227s File "/usr/lib/python3.13/subprocess.py", line 51, in 227s import threading 227s File "/usr/lib/python3.13/threading.py", line 675, in 227s class Barrier: 227s ...<159 lines>... 227s return self._state == -2 227s KeyboardInterrupt 227s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 227s 227s self = 227s 227s def test_create_with_kernel_id(self): 227s # create a new kernel 227s r = self.request('POST', 'api/kernels') 227s r.raise_for_status() 227s kernel = r.json() 227s 227s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 227s self.assertEqual(resp.status_code, 201) 227s newsession = resp.json() 227s self.assertIn('id', newsession) 227s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 227s self.assertEqual(newsession['kernel']['id'], kernel['id']) 227s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 227s 227s sessions = self.sess_api.list().json() 227s > self.assertEqual(sessions, [newsession]) 227s E AssertionError: Lists differ: [{'id': '3177dc13-1cdd-4466-a8e9-97913e41f3c4', 'p[553 chars]ne}}] != [{'id': '0f083e96-df04-45cb-a3b6-aa072fd7a7b2', 'p[279 chars]ne}}] 227s E 227s E First differing element 0: 227s E {'id': '3177dc13-1cdd-4466-a8e9-97913e41f3c4', 'p[218 chars]: 0}} 227s E {'id': '0f083e96-df04-45cb-a3b6-aa072fd7a7b2', 'p[278 chars]one}} 227s E 227s E First list contains 1 additional elements. 227s E First extra element 1: 227s E {'id': '0f083e96-df04-45cb-a3b6-aa072fd7a7b2', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '40e13c88-7a97-4595-8ba4-9181e34dcf61', 'name': 'python3', 'last_activity': '2026-01-30T06:06:22.381444Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 227s E 227s E Diff is 830 characters long. Set self.maxDiff to None to see it. 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-40e13c88-7a97-4595-8ba4-9181e34dcf61.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53743 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57187 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 40e13c88-7a97-4595-8ba4-9181e34dcf61, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.990000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.030000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ba0b454-10b0-48d5-8a3c-e920ea3bc7a6 227s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3177dc13-1cdd-4466-a8e9-97913e41f3c4 (::1) 9.630000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 5.960000ms referer=None 227s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ----------------------------- Captured stderr call ----------------------------- 227s Traceback (most recent call last): 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.510000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-623524dc-542c-4abc-a1ef-82302f741a5f.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53471 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52901 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 623524dc-542c-4abc-a1ef-82302f741a5f, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.860000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 40e13c88-7a97-4595-8ba4-9181e34dcf61 227s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 2.440000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 623524dc-542c-4abc-a1ef-82302f741a5f 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 623524dc-542c-4abc-a1ef-82302f741a5f 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 7.930000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 227s from ipykernel import kernelapp as app 227s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 227s from .connect import * # noqa: F403 227s ^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 227s from subprocess import PIPE, Popen 227s File "/usr/lib/python3.13/subprocess.py", line 49, in 227s import signal 227s File "/usr/lib/python3.13/signal.py", line 7, in 227s _IntEnum._convert_( 227s ~~~~~~~~~~~~~~~~~~^ 227s 'Signals', __name__, 227s ^^^^^^^^^^^^^^^^^^^^ 227s ...<2 lines>... 227s and (name.startswith('SIG') and not name.startswith('SIG_')) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s or name.startswith('CTRL_')) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 227s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 227s File "/usr/lib/python3.13/enum.py", line 1891, in convert_class 227s contained = value2member_map.get(member._value_) 227s KeyboardInterrupt 227s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 63.680000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-9871ec56-2358-4393-8c12-e80bd89c18ed.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54571 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34985 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9871ec56-2358-4393-8c12-e80bd89c18ed, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 623524dc-542c-4abc-a1ef-82302f741a5f 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 623524dc-542c-4abc-a1ef-82302f741a5f 227s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 160.920000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9871ec56-2358-4393-8c12-e80bd89c18ed 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9871ec56-2358-4393-8c12-e80bd89c18ed 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f083e96-df04-45cb-a3b6-aa072fd7a7b2', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s _______________________ SessionAPITest.test_modify_type ________________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a1f3899a-ebd5-40e4-8d95-a9a57badd6c6 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log call ------------------------------- 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwciwnbih/runtime/kernel-1543f2ab-70d7-4521-96bf-aaafffb409ff.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39819 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54199 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1543f2ab-70d7-4521-96bf-aaafffb409ff, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwciwnbih/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.330000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a1f3899a-ebd5-40e4-8d95-a9a57badd6c6 (::1) 1.500000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.330000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1543f2ab-70d7-4521-96bf-aaafffb409ff 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1543f2ab-70d7-4521-96bf-aaafffb409ff 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a1f3899a-ebd5-40e4-8d95-a9a57badd6c6 (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a1f3899a-ebd5-40e4-8d95-a9a57badd6c6', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 227s yielded = self.gen.send(value) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 227s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 227s stopper = ensure_async(km.shutdown_kernel(now, restart)) 227s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 227s return _runner_map[name].run(inner) 227s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 227s return fut.result(None) 227s ~~~~~~~~~~^^^^^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 227s return self.__get_result() 227s ~~~~~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 227s raise self._exception 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s WARNING NotebookApp:handlers.py:612 Unhandled error 227s ERROR NotebookApp:log.py:55 { 227s "Host": "localhost:12341", 227s "Accept": "*/*", 227s "User-Agent": "python-requests/2.32.5" 227s } 227s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a1f3899a-ebd5-40e4-8d95-a9a57badd6c6 (::1) 5.870000ms referer=None 227s --------------------------- Captured stderr teardown --------------------------- 227s Traceback (most recent call last): 227s ---------------------------- Captured log teardown ----------------------------- 227s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1543f2ab-70d7-4521-96bf-aaafffb409ff 227s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 227s _______________________ AsyncSessionAPITest.test_create ________________________ 227s 227s @self.addCleanup 227s def cleanup_sessions(): 227s for session in self.sess_api.list().json(): 227s > self.sess_api.delete(session['id']) 227s 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 227s return self._req('DELETE', id) 227s ^^^^^^^^^^^^^^^^^^^^^^^ 227s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 227s response.raise_for_status() 227s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 227s 227s self = 227s 227s def raise_for_status(self): 227s """Raises :class:`HTTPError`, if one occurred.""" 227s 227s http_error_msg = "" 227s if isinstance(self.reason, bytes): 227s # We attempt to decode utf-8 first because some servers 227s # choose to localize their reason strings. If the string 227s # isn't utf-8, we fall back to iso-8859-1 for all other 227s # encodings. (See PR #3538) 227s try: 227s reason = self.reason.decode("utf-8") 227s except UnicodeDecodeError: 227s reason = self.reason.decode("iso-8859-1") 227s else: 227s reason = self.reason 227s 227s if 400 <= self.status_code < 500: 227s http_error_msg = ( 227s f"{self.status_code} Client Error: {reason} for url: {self.url}" 227s ) 227s 227s elif 500 <= self.status_code < 600: 227s http_error_msg = ( 227s f"{self.status_code} Server Error: {reason} for url: {self.url}" 227s ) 227s 227s if http_error_msg: 227s > raise HTTPError(http_error_msg, response=self) 227s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/818a20ec-a367-4c97-b7cb-8e82db2e3fff 227s 227s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 227s ------------------------------ Captured log setup ------------------------------ 227s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7r6r6w45/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7r6r6w45/etc/jupyter'] for config files 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7r6r6w45/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7r6r6w45/config 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7r6r6w45/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 227s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7r6r6w45/config 227s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7r6r6w45/notebooks 227s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 227s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 227s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 227s WARNING NotebookApp:handlers.py:612 Forbidden 227s ----------------------------- Captured stderr call ----------------------------- 227s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 227s return _run_code(code, main_globals, None, 227s "__main__", mod_spec) 227s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 227s exec(code, run_globals) 227s ~~~~^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 227s from pathlib import Path 227s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 227s from ._local import * 227s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 227s class _PathParents(Sequence): 227s ...<25 lines>... 227s return "<{}.parents>".format(type(self._path).__name__) 227s File "/usr/lib/python3.13/abc.py", line 107, in __new__ 227s _abc_init(cls) 227s ~~~~~~~~~^^^^^ 227s KeyboardInterrupt 227s ------------------------------ Captured log call ------------------------------- 227s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.760000ms referer=None 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 227s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-361f096f-6307-4d93-80be-3c88be6e72d8.json'] 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44871 227s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59487 227s INFO NotebookApp:kernelmanager.py:179 Kernel started: 361f096f-6307-4d93-80be-3c88be6e72d8, name: python3 227s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 227s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 24.980000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/818a20ec-a367-4c97-b7cb-8e82db2e3fff (::1) 0.750000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.020000ms 227s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 227s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 361f096f-6307-4d93-80be-3c88be6e72d8 227s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 361f096f-6307-4d93-80be-3c88be6e72d8 227s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 227s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/818a20ec-a367-4c97-b7cb-8e82db2e3fff (::1) 227s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/818a20ec-a367-4c97-b7cb-8e82db2e3fff', version='HTTP/1.1', remote_ip='::1') 227s Traceback (most recent call last): 227s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 227s result = await result 227s ^^^^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 227s future.result() 227s ~~~~~~~~~~~~~^^ 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 227s yield maybe_future(sm.delete_session(session_id)) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 227s yielded = self.gen.throw(exc) 227s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 227s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 227s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 227s value = future.result() 227s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 227s raise self._exception.with_traceback(self._exception_tb) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 227s result = coro.send(None) 227s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 227s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 227s raise km.ready.exception() # type: ignore[misc] 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 227s await kernel_awaitable 227s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 227s result = await obj 227s ^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 227s raise e 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 227s out = await method(self, *args, **kwargs) 227s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 227s await self._async_finish_shutdown(restart=restart) 227s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 227s await asyncio.wait_for( 227s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 227s ) 227s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 227s async with timeouts.timeout(timeout): 227s ~~~~~~~~~~~~~~~~^^^^^^^^^ 227s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 227s raise RuntimeError("Timeout should be used inside a task") 227s RuntimeError: Timeout should be used inside a task 228s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 228s gc.collect() 228s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 229s 229s --------------------------- Captured stderr teardown --------------------------- 229s Traceback (most recent call last): 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 229s from ipykernel import kernelapp as app 229s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 229s from .connect import * # noqa: F403 229s ^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 229s import jupyter_client 229s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 3, in 229s from ._version import __version__, protocol_version, protocol_version_info, version_info 229s File "", line 1360, in _find_and_load 229s File "", line 1331, in _find_and_load_unlocked 229s File "", line 921, in _load_unlocked 229s File "", line 819, in module_from_spec 229s File "", line 798, in _init_module_attrs 229s File "", line 638, in cached 229s File "", line 640, in _get_cached 229s KeyboardInterrupt 229s _______________ AsyncSessionAPITest.test_create_console_session ________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5b0e7e2b-0e3a-4f07-831e-5289c08a4fa4 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-b60116d9-11cc-4384-b58d-ea5b74f5b687.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35317 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35423 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: b60116d9-11cc-4384-b58d-ea5b74f5b687, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.200000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 361f096f-6307-4d93-80be-3c88be6e72d8 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 361f096f-6307-4d93-80be-3c88be6e72d8 229s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/818a20ec-a367-4c97-b7cb-8e82db2e3fff (::1) 0.660000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b60116d9-11cc-4384-b58d-ea5b74f5b687 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b60116d9-11cc-4384-b58d-ea5b74f5b687 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5b0e7e2b-0e3a-4f07-831e-5289c08a4fa4 (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5b0e7e2b-0e3a-4f07-831e-5289c08a4fa4', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5b0e7e2b-0e3a-4f07-831e-5289c08a4fa4 (::1) 5.260000ms referer=None 229s --------------------------- Captured stderr teardown --------------------------- 229s Traceback (most recent call last): 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 229s from ipykernel import kernelapp as app 229s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 229s from .connect import * # noqa: F403 229s ^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 229s from subprocess import PIPE, Popen 229s File "/usr/lib/python3.13/subprocess.py", line 46, in 229s import locale 229s File "/usr/lib/python3.13/locale.py", line 180, in 229s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 229s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 229s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 229s return _compile(pattern, flags) 229s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 229s p = _compiler.compile(pattern, flags) 229s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 229s code = _code(p, flags) 229s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 229s _compile(code, p.data, flags) 229s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 229s _compile(code, av[2], flags) 229s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 229s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 229s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 229s _compile(code, av[2], flags) 229s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 229s emit(ANY) 229s ~~~~^^^^^ 229s KeyboardInterrupt 229s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7befee2d-e957-4161-bc56-baf5d361254a 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-46f523f1-864e-48e0-8476-7e8a58df4b23.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34713 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55177 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: 46f523f1-864e-48e0-8476-7e8a58df4b23, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.130000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b60116d9-11cc-4384-b58d-ea5b74f5b687 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b60116d9-11cc-4384-b58d-ea5b74f5b687 229s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5b0e7e2b-0e3a-4f07-831e-5289c08a4fa4 (::1) 0.610000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 46f523f1-864e-48e0-8476-7e8a58df4b23 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46f523f1-864e-48e0-8476-7e8a58df4b23 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7befee2d-e957-4161-bc56-baf5d361254a (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7befee2d-e957-4161-bc56-baf5d361254a', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7befee2d-e957-4161-bc56-baf5d361254a (::1) 13.980000ms referer=None 229s --------------------------- Captured stderr teardown --------------------------- 229s Traceback (most recent call last): 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 229s from pathlib import Path 229s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 229s from ._local import * 229s File "", line 1360, in _find_and_load 229s File "", line 1334, in _find_and_load_unlocked 229s KeyboardInterrupt 229s _________________ AsyncSessionAPITest.test_create_file_session _________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/98d1d206-283c-451b-8efd-78012e9f737b 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ----------------------------- Captured stderr call ----------------------------- 229s Traceback (most recent call last): 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60115 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35031 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 36.230000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.660000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 46f523f1-864e-48e0-8476-7e8a58df4b23 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46f523f1-864e-48e0-8476-7e8a58df4b23 229s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7befee2d-e957-4161-bc56-baf5d361254a (::1) 1.640000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/98d1d206-283c-451b-8efd-78012e9f737b (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/98d1d206-283c-451b-8efd-78012e9f737b', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s --------------------------- Captured stderr teardown --------------------------- 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 229s from pathlib import Path 229s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 229s from ._local import * 229s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 229s class PureWindowsPath(PurePath): 229s ...<7 lines>... 229s __slots__ = () 229s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 229s import ntpath 229s File "/usr/lib/python3.13/ntpath.py", line 472, in 229s from nt import _path_normpath as normpath 229s File "", line 1360, in _find_and_load 229s File "", line 1322, in _find_and_load_unlocked 229s File "", line 1262, in _find_spec 229s File "", line 1556, in find_spec 229s File "", line 1530, in _get_spec 229s File "", line 1629, in find_spec 229s File "", line 152, in _path_stat 229s KeyboardInterrupt 229s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 229s 229s self = 229s 229s def test_create_with_kernel_id(self): 229s # create a new kernel 229s r = self.request('POST', 'api/kernels') 229s r.raise_for_status() 229s kernel = r.json() 229s 229s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 229s self.assertEqual(resp.status_code, 201) 229s newsession = resp.json() 229s self.assertIn('id', newsession) 229s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 229s self.assertEqual(newsession['kernel']['id'], kernel['id']) 229s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 229s 229s sessions = self.sess_api.list().json() 229s > self.assertEqual(sessions, [newsession]) 229s E AssertionError: Lists differ: [{'id': '98d1d206-283c-451b-8efd-78012e9f737b', 'p[553 chars]ne}}] != [{'id': '1ae5d48b-b0af-4798-a169-ab928ced8de2', 'p[279 chars]ne}}] 229s E 229s E First differing element 0: 229s E {'id': '98d1d206-283c-451b-8efd-78012e9f737b', 'p[218 chars]: 0}} 229s E {'id': '1ae5d48b-b0af-4798-a169-ab928ced8de2', 'p[278 chars]one}} 229s E 229s E First list contains 1 additional elements. 229s E First extra element 1: 229s E {'id': '1ae5d48b-b0af-4798-a169-ab928ced8de2', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '2f9a93a0-2f42-4540-a381-15eff29fe828', 'name': 'python3', 'last_activity': '2026-01-30T06:06:23.869939Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 229s E 229s E Diff is 830 characters long. Set self.maxDiff to None to see it. 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 229s ----------------------------- Captured stderr call ----------------------------- 229s Traceback (most recent call last): 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-2f9a93a0-2f42-4540-a381-15eff29fe828.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59367 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35813 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2f9a93a0-2f42-4540-a381-15eff29fe828, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.770000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 6.820000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 229s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/98d1d206-283c-451b-8efd-78012e9f737b (::1) 0.670000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2f9a93a0-2f42-4540-a381-15eff29fe828 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2f9a93a0-2f42-4540-a381-15eff29fe828 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 5.340000ms referer=None 229s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ----------------------------- Captured stderr call ----------------------------- 229s Traceback (most recent call last): 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-e70bf0fb-d505-4ce2-966e-bd4a4bb9e186.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39437 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41479 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: e70bf0fb-d505-4ce2-966e-bd4a4bb9e186, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.050000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2f9a93a0-2f42-4540-a381-15eff29fe828 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2f9a93a0-2f42-4540-a381-15eff29fe828 229s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 0.730000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e70bf0fb-d505-4ce2-966e-bd4a4bb9e186 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e70bf0fb-d505-4ce2-966e-bd4a4bb9e186 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 5.330000ms referer=None 229s --------------------------- Captured stderr teardown --------------------------- 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 229s from pathlib import Path 229s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 229s from ._local import * 229s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 229s class PureWindowsPath(PurePath): 229s ...<7 lines>... 229s __slots__ = () 229s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 229s import ntpath 229s File "", line 1360, in _find_and_load 229s File "", line 1331, in _find_and_load_unlocked 229s File "", line 935, in _load_unlocked 229s File "", line 1019, in exec_module 229s File "", line 1152, in get_code 229s File "", line 781, in _compile_bytecode 229s KeyboardInterrupt 229s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ----------------------------- Captured stderr call ----------------------------- 229s Traceback (most recent call last): 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-ae408390-1e99-4edf-a1d1-823c88cdf5f5.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48413 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36729 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae408390-1e99-4edf-a1d1-823c88cdf5f5, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e70bf0fb-d505-4ce2-966e-bd4a4bb9e186 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e70bf0fb-d505-4ce2-966e-bd4a4bb9e186 229s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 19.130000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae408390-1e99-4edf-a1d1-823c88cdf5f5 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae408390-1e99-4edf-a1d1-823c88cdf5f5 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1ae5d48b-b0af-4798-a169-ab928ced8de2 (::1) 5.520000ms referer=None 229s --------------------------- Captured stderr teardown --------------------------- 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 229s from pathlib import Path 229s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 229s from ._abc import * 229s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 229s from glob import _Globber, _no_recurse_symlinks 229s File "/usr/lib/python3.13/glob.py", line 6, in 229s import fnmatch 229s File "", line 1360, in _find_and_load 229s File "", line 1331, in _find_and_load_unlocked 229s File "", line 935, in _load_unlocked 229s File "", line 1019, in exec_module 229s File "", line 1152, in get_code 229s File "", line 781, in _compile_bytecode 229s KeyboardInterrupt 229s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 229s 229s @self.addCleanup 229s def cleanup_sessions(): 229s for session in self.sess_api.list().json(): 229s > self.sess_api.delete(session['id']) 229s 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 229s return self._req('DELETE', id) 229s ^^^^^^^^^^^^^^^^^^^^^^^ 229s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 229s response.raise_for_status() 229s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 229s 229s self = 229s 229s def raise_for_status(self): 229s """Raises :class:`HTTPError`, if one occurred.""" 229s 229s http_error_msg = "" 229s if isinstance(self.reason, bytes): 229s # We attempt to decode utf-8 first because some servers 229s # choose to localize their reason strings. If the string 229s # isn't utf-8, we fall back to iso-8859-1 for all other 229s # encodings. (See PR #3538) 229s try: 229s reason = self.reason.decode("utf-8") 229s except UnicodeDecodeError: 229s reason = self.reason.decode("iso-8859-1") 229s else: 229s reason = self.reason 229s 229s if 400 <= self.status_code < 500: 229s http_error_msg = ( 229s f"{self.status_code} Client Error: {reason} for url: {self.url}" 229s ) 229s 229s elif 500 <= self.status_code < 600: 229s http_error_msg = ( 229s f"{self.status_code} Server Error: {reason} for url: {self.url}" 229s ) 229s 229s if http_error_msg: 229s > raise HTTPError(http_error_msg, response=self) 229s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/00352505-8aeb-4a9f-98b5-af6853cd8ff5 229s 229s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 229s ----------------------------- Captured stderr call ----------------------------- 229s Traceback (most recent call last): 229s ------------------------------ Captured log call ------------------------------- 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 229s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7r6r6w45/runtime/kernel-b7f41a56-8ec6-4901-a05f-2880b0fff8ef.json'] 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40983 229s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45417 229s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7f41a56-8ec6-4901-a05f-2880b0fff8ef, name: python3 229s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp7r6r6w45/notebooks/foo'} 229s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.040000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/00352505-8aeb-4a9f-98b5-af6853cd8ff5 (::1) 0.700000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 229s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 229s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7f41a56-8ec6-4901-a05f-2880b0fff8ef 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7f41a56-8ec6-4901-a05f-2880b0fff8ef 229s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/00352505-8aeb-4a9f-98b5-af6853cd8ff5 (::1) 229s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/00352505-8aeb-4a9f-98b5-af6853cd8ff5', version='HTTP/1.1', remote_ip='::1') 229s Traceback (most recent call last): 229s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 229s result = await result 229s ^^^^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 229s future.result() 229s ~~~~~~~~~~~~~^^ 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 229s yield maybe_future(sm.delete_session(session_id)) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 229s yielded = self.gen.throw(exc) 229s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 229s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 229s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 229s value = future.result() 229s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 229s raise self._exception.with_traceback(self._exception_tb) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 229s result = coro.send(None) 229s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 229s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 229s raise km.ready.exception() # type: ignore[misc] 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 229s await kernel_awaitable 229s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 229s result = await obj 229s ^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 229s raise e 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 229s out = await method(self, *args, **kwargs) 229s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 229s await self._async_finish_shutdown(restart=restart) 229s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 229s await asyncio.wait_for( 229s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 229s ) 229s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 229s async with timeouts.timeout(timeout): 229s ~~~~~~~~~~~~~~~~^^^^^^^^^ 229s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 229s raise RuntimeError("Timeout should be used inside a task") 229s RuntimeError: Timeout should be used inside a task 229s WARNING NotebookApp:handlers.py:612 Unhandled error 229s ERROR NotebookApp:log.py:55 { 229s "Host": "localhost:12341", 229s "Accept": "*/*", 229s "User-Agent": "python-requests/2.32.5" 229s } 229s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/00352505-8aeb-4a9f-98b5-af6853cd8ff5 (::1) 6.000000ms referer=None 229s --------------------------- Captured stderr teardown --------------------------- 229s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 229s return _run_code(code, main_globals, None, 229s "__main__", mod_spec) 229s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 229s exec(code, run_globals) 229s ~~~~^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 229s from ipykernel import kernelapp as app 229s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 229s from .connect import * # noqa: F403 229s ^^^^^^^^^^^^^^^^^^^^^^ 229s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 229s from subprocess import PIPE, Popen 229s File "/usr/lib/python3.13/subprocess.py", line 46, in 229s import locale 229s File "", line 1360, in _find_and_load 229s File "", line 1331, in _find_and_load_unlocked 229s File "", line 935, in _load_unlocked 229s File "", line 1019, in exec_module 229s File "", line 1152, in get_code 229s File "", line 781, in _compile_bytecode 229s KeyboardInterrupt 229s ---------------------------- Captured log teardown ----------------------------- 229s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae408390-1e99-4edf-a1d1-823c88cdf5f5 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7f41a56-8ec6-4901-a05f-2880b0fff8ef 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 46f523f1-864e-48e0-8476-7e8a58df4b23 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 361f096f-6307-4d93-80be-3c88be6e72d8 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e70bf0fb-d505-4ce2-966e-bd4a4bb9e186 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2f9a93a0-2f42-4540-a381-15eff29fe828 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ad96ecd-da8c-47ce-bd73-ad5f5e5cb65f 229s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b60116d9-11cc-4384-b58d-ea5b74f5b687 229s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 229s =============================== warnings summary =============================== 229s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 229s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 229s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 229s return LooseVersion(v) >= LooseVersion(check) 229s 229s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 229s services/kernels/tests/test_kernels_api.py: 72 warnings 229s services/sessions/tests/test_sessions_api.py: 106 warnings 229s /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). 229s dt = unaware(*args, **kwargs) 229s 229s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 229s /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 229s pytestmark = pytest.mark.integration_tests 229s 229s services/kernels/tests/test_kernels_api.py: 6 warnings 229s services/sessions/tests/test_sessions_api.py: 6 warnings 229s /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 229s policy = events.get_event_loop_policy() 229s 229s services/kernels/tests/test_kernels_api.py: 24 warnings 229s services/sessions/tests/test_sessions_api.py: 19 warnings 229s /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 229s loop = events.get_event_loop_policy().get_event_loop() 229s 229s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 229s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 229s loop.make_current() 229s 229s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 229s =========================== short test summary info ============================ 229s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 229s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 229s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 229s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 229s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 229s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 229s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 229s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 229s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 229s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 229s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 229s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 229s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 229s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 229s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 229s ==== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 17.68s ===== 229s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 229s *** 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 240s ============================= test session starts ============================== 240s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 240s rootdir: /tmp/autopkgtest.n0cVOx/autopkgtest_tmp 240s plugins: typeguard-4.4.4 240s collected 330 items / 305 deselected / 25 selected 240s run-last-failure: rerun previous 25 failures 240s 244s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 247s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 247s 247s ==================================== ERRORS ==================================== 247s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 247s 247s self = 247s 247s def tearDown(self): 247s for k in self.kern_api.list().json(): 247s > self.kern_api.shutdown(k['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Fatal Python error: init_import_site: Failed to import the site module 247s Python runtime state: initialized 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/site.py", line 79, in 247s import os 247s File "/usr/lib/python3.13/os.py", line 29, in 247s from _collections_abc import _check_methods 247s File "", line 1360, in _find_and_load 247s File "", line 1331, in _find_and_load_unlocked 247s File "", line 935, in _load_unlocked 247s File "", line 1019, in exec_module 247s File "", line 1152, in get_code 247s File "", line 781, in _compile_bytecode 247s KeyboardInterrupt 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 21, in 247s from IPython.core.application import ( # type:ignore[attr-defined] 247s ...<4 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 54, in 247s from .core.application import Application 247s File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 26, in 247s from IPython.core import release, crashhandler 247s File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 29, in 247s from IPython.core import ultratb 247s File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 104, in 247s import stack_data 247s File "/usr/lib/python3/dist-packages/stack_data/__init__.py", line 1, in 247s from .core import Source, FrameInfo, markers_from_ranges, Options, LINE_GAP, Line, Variable, RangeInLine, \ 247s RepeatedFrames, MarkerInLine, style_with_executing_node, BlankLineRange, BlankLines 247s File "/usr/lib/python3/dist-packages/stack_data/core.py", line 16, in 247s from asttokens.util import Token 247s File "/usr/lib/python3/dist-packages/asttokens/__init__.py", line 22, in 247s from .asttokens import ASTText, ASTTokens, supports_tokenless 247s File "/usr/lib/python3/dist-packages/asttokens/asttokens.py", line 24, in 247s from .util import ( 247s ...<2 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/asttokens/util.py", line 204, in 247s from astroid.nodes import Const 247s File "/usr/lib/python3/dist-packages/astroid/__init__.py", line 35, in 247s from astroid.nodes import node_classes, scoped_nodes 247s File "/usr/lib/python3/dist-packages/astroid/nodes/__init__.py", line 14, in 247s from astroid.nodes.node_classes import ( 247s ...<81 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/astroid/nodes/node_classes.py", line 20, in 247s from astroid import decorators, protocols, util 247s File "/usr/lib/python3/dist-packages/astroid/protocols.py", line 17, in 247s from astroid import bases, decorators, nodes, util 247s File "/usr/lib/python3/dist-packages/astroid/bases.py", line 29, in 247s from astroid.interpreter import objectmodel 247s File "/usr/lib/python3/dist-packages/astroid/interpreter/objectmodel.py", line 38, in 247s from astroid.manager import AstroidManager 247s File "/usr/lib/python3/dist-packages/astroid/manager.py", line 20, in 247s from astroid.builder import AstroidBuilder, build_namespace_package_module 247s File "/usr/lib/python3/dist-packages/astroid/builder.py", line 24, in 247s from astroid import bases, modutils, nodes, raw_building, rebuilder, util 247s File "/usr/lib/python3/dist-packages/astroid/modutils.py", line 36, in 247s from astroid.interpreter._import import spec, util 247s File "", line 471, in _lock_unlock_module 247s File "", line 311, in acquire 247s File "", line 158, in __init__ 247s KeyboardInterrupt 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-2b45b53b-cb42-42fe-b559-92d67ea7c621.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42987 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36699 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b45b53b-cb42-42fe-b559-92d67ea7c621, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 387.870000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 8.370000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-d6e836fd-4e62-4561-8ba0-6bfa963d9d93.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46637 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46335 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: d6e836fd-4e62-4561-8ba0-6bfa963d9d93, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 61.500000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d6e836fd-4e62-4561-8ba0-6bfa963d9d93 247s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93/interrupt (::1) 0.720000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 247s yield maybe_future(km.restart_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 247s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 247s await ensure_async(kernel.restart_kernel(now=now)) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 247s await self._async_shutdown_kernel(now=now, restart=True) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93/restart (::1) 9.400000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 247s yielded = ctx_run(next, result) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 (::1) 23.410000ms referer=None 247s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 247s 247s self = 247s 247s def tearDown(self): 247s for k in self.kern_api.list().json(): 247s > self.kern_api.shutdown(k['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-bba396de-4e57-4848-afb9-f74b1febcdd2.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44713 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42611 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: bba396de-4e57-4848-afb9-f74b1febcdd2, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-6b47b88a-3afc-4a33-a827-692740e4a197.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47413 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36457 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b47b88a-3afc-4a33-a827-692740e4a197, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 95.910000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6b47b88a-3afc-4a33-a827-692740e4a197 247s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197/interrupt (::1) 0.440000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 247s yield maybe_future(km.restart_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 247s result = coro.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 247s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 247s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 247s yield self # This tells Task to wait for completion. 247s ^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 247s await ensure_async(kernel.restart_kernel(now=now)) 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 247s await self._async_shutdown_kernel(now=now, restart=True) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197/restart (::1) 2.630000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba396de-4e57-4848-afb9-f74b1febcdd2 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba396de-4e57-4848-afb9-f74b1febcdd2 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 247s from typing import TYPE_CHECKING, Any 247s File "/usr/lib/python3.13/typing.py", line 1409, in 247s class _GenericAlias(_BaseGenericAlias, _root=True): 247s ...<217 lines>... 247s yield Unpack[self] 247s File "/usr/lib/python3.13/typing.py", line 1464, in _GenericAlias 247s @_tp_cache 247s ^^^^^^^^^ 247s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 247s return decorator(func) 247s File "/usr/lib/python3.13/typing.py", line 421, in decorator 247s cache = functools.lru_cache(typed=typed)(func) 247s File "/usr/lib/python3.13/functools.py", line 545, in decorating_function 247s wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo) 247s KeyboardInterrupt 247s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-24b4bde5-d39e-4033-8248-a8bbdb8223ca.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52533 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50423 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24b4bde5-d39e-4033-8248-a8bbdb8223ca, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.210000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758 (::1) 1.570000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 247s from ._version import ( 247s ...<4 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 247s match = re.match(pattern, __version__) 247s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 247s return _compile(pattern, flags).match(string) 247s ~~~~~~~~^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 247s p = _compiler.compile(pattern, flags) 247s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 247s code = _code(p, flags) 247s File "/usr/lib/python3.13/re/_compiler.py", line 576, in _code 247s def _code(p, flags): 247s 247s KeyboardInterrupt 247s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-47b8f6a9-e60c-40f3-931a-ea65757e1ffc.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60377 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36345 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 47b8f6a9-e60c-40f3-931a-ea65757e1ffc, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.870000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.640000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca9d98a4-dcda-4c53-9367-b74106696a86 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca9d98a4-dcda-4c53-9367-b74106696a86 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d748ee8a-ec06-418d-8bdf-07a7ff800485 (::1) 1.430000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s =================================== FAILURES =================================== 247s ______________________ KernelAPITest.test_default_kernel _______________________ 247s 247s self = 247s 247s def tearDown(self): 247s for k in self.kern_api.list().json(): 247s > self.kern_api.shutdown(k['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/60f3d642-9f31-4749-a870-c4b2133e66ad 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log setup ------------------------------ 247s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpx24j7yst/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpx24j7yst/etc/jupyter'] for config files 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx24j7yst/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx24j7yst/config 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx24j7yst/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx24j7yst/config 247s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpx24j7yst/notebooks 247s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 247s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 247s WARNING NotebookApp:handlers.py:612 Forbidden 247s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.660000ms referer=None 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-60f3d642-9f31-4749-a870-c4b2133e66ad.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59845 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52177 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60f3d642-9f31-4749-a870-c4b2133e66ad, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 45.620000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60f3d642-9f31-4749-a870-c4b2133e66ad 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60f3d642-9f31-4749-a870-c4b2133e66ad 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/60f3d642-9f31-4749-a870-c4b2133e66ad (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/60f3d642-9f31-4749-a870-c4b2133e66ad', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 247s yielded = ctx_run(next, result) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/60f3d642-9f31-4749-a870-c4b2133e66ad (::1) 6.920000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 247s from ._version import ( 247s ...<4 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 247s match = re.match(pattern, __version__) 247s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 247s return _compile(pattern, flags).match(string) 247s ~~~~~~~~^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 247s p = _compiler.compile(pattern, flags) 247s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 247s p = _parser.parse(p, flags) 247s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 247s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 247s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 247s itemsappend(_parse(source, state, verbose, nested + 1, 247s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s not nested and not items)) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 247s p = _parse_sub(source, state, sub_verbose, nested + 1) 247s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 247s itemsappend(_parse(source, state, verbose, nested + 1, 247s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s not nested and not items)) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/re/_parser.py", line 682, in _parse 247s item = subpattern[-1:] 247s ~~~~~~~~~~^^^^^ 247s File "/usr/lib/python3.13/re/_parser.py", line 169, in __getitem__ 247s return SubPattern(self.state, self.data[index]) 247s File "/usr/lib/python3.13/re/_parser.py", line 112, in __init__ 247s def __init__(self, state, data=None): 247s 247s KeyboardInterrupt 247s ______________________ KernelAPITest.test_kernel_handler _______________________ 247s 247s self = 247s 247s def test_kernel_handler(self): 247s # GET kernel with given id 247s kid = self.kern_api.start().json()['id'] 247s r = self.kern_api.get(kid) 247s kern1 = r.json() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(kern1, dict) 247s self.assertIn('id', kern1) 247s self.assertEqual(kern1['id'], kid) 247s 247s # Request a bad kernel id and check that a JSON 247s # message is returned! 247s bad_id = '111-111-111-111-111' 247s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 247s self.kern_api.get(bad_id) 247s 247s # DELETE kernel with id 247s > r = self.kern_api.shutdown(kid) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-81a3d6aa-7566-4c77-b0a1-fe4741ecbf70.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45311 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50225 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81a3d6aa-7566-4c77-b0a1-fe4741ecbf70, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 29.410000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 (::1) 0.520000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s 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 247s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 247s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.490000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 247s yielded = ctx_run(next, result) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 (::1) 15.850000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 16.290000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60f3d642-9f31-4749-a870-c4b2133e66ad 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60f3d642-9f31-4749-a870-c4b2133e66ad 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/60f3d642-9f31-4749-a870-c4b2133e66ad (::1) 0.690000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/81a3d6aa-7566-4c77-b0a1-fe4741ecbf70 (::1) 0.770000ms 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 247s from subprocess import PIPE, Popen 247s File "/usr/lib/python3.13/subprocess.py", line 49, in 247s import signal 247s File "/usr/lib/python3.13/signal.py", line 14, in 247s _IntEnum._convert_( 247s ~~~~~~~~~~~~~~~~~~^ 247s 'Handlers', __name__, 247s ^^^^^^^^^^^^^^^^^^^^^ 247s lambda name: name in ('SIG_DFL', 'SIG_IGN')) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 247s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 247s File "/usr/lib/python3.13/enum.py", line 1778, in convert_class 247s if issubclass(etype, Flag): 247s ~~~~~~~~~~^^^^^^^^^^^^^ 247s KeyboardInterrupt 247s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 247s 247s self = 247s 247s def test_main_kernel_handler(self): 247s # POST request 247s r = self.kern_api.start() 247s kern1 = r.json() 247s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 247s self.assertEqual(r.status_code, 201) 247s self.assertIsInstance(kern1, dict) 247s 247s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 247s expected_csp = '; '.join([ 247s "frame-ancestors 'self'", 247s 'report-uri ' + report_uri, 247s "default-src 'none'" 247s ]) 247s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 247s 247s # GET request 247s r = self.kern_api.list() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(r.json(), list) 247s self.assertEqual(r.json()[0]['id'], kern1['id']) 247s self.assertEqual(r.json()[0]['name'], kern1['name']) 247s 247s # create another kernel and check that they both are added to the 247s # list of kernels from a GET request 247s kern2 = self.kern_api.start().json() 247s assert isinstance(kern2, dict) 247s r = self.kern_api.list() 247s kernels = r.json() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(kernels, list) 247s self.assertEqual(len(kernels), 2) 247s 247s # Interrupt a kernel 247s r = self.kern_api.interrupt(kern2['id']) 247s self.assertEqual(r.status_code, 204) 247s 247s # Restart a kernel 247s > r = self.kern_api.restart(kern2['id']) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 247s return self._req('POST', url_path_join(id, 'restart')) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93/restart 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Fatal Python error: init_import_site: Failed to import the site module 247s Python runtime state: initialized 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/site.py", line 79, in 247s import os 247s File "/usr/lib/python3.13/os.py", line 29, in 247s from _collections_abc import _check_methods 247s File "", line 1360, in _find_and_load 247s File "", line 1331, in _find_and_load_unlocked 247s File "", line 935, in _load_unlocked 247s File "", line 1019, in exec_module 247s File "", line 1152, in get_code 247s File "", line 781, in _compile_bytecode 247s KeyboardInterrupt 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 21, in 247s from IPython.core.application import ( # type:ignore[attr-defined] 247s ...<4 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 54, in 247s from .core.application import Application 247s File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 26, in 247s from IPython.core import release, crashhandler 247s File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 29, in 247s from IPython.core import ultratb 247s File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 104, in 247s import stack_data 247s File "/usr/lib/python3/dist-packages/stack_data/__init__.py", line 1, in 247s from .core import Source, FrameInfo, markers_from_ranges, Options, LINE_GAP, Line, Variable, RangeInLine, \ 247s RepeatedFrames, MarkerInLine, style_with_executing_node, BlankLineRange, BlankLines 247s File "/usr/lib/python3/dist-packages/stack_data/core.py", line 16, in 247s from asttokens.util import Token 247s File "/usr/lib/python3/dist-packages/asttokens/__init__.py", line 22, in 247s from .asttokens import ASTText, ASTTokens, supports_tokenless 247s File "/usr/lib/python3/dist-packages/asttokens/asttokens.py", line 24, in 247s from .util import ( 247s ...<2 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/asttokens/util.py", line 204, in 247s from astroid.nodes import Const 247s File "/usr/lib/python3/dist-packages/astroid/__init__.py", line 35, in 247s from astroid.nodes import node_classes, scoped_nodes 247s File "/usr/lib/python3/dist-packages/astroid/nodes/__init__.py", line 14, in 247s from astroid.nodes.node_classes import ( 247s ...<81 lines>... 247s ) 247s File "/usr/lib/python3/dist-packages/astroid/nodes/node_classes.py", line 20, in 247s from astroid import decorators, protocols, util 247s File "/usr/lib/python3/dist-packages/astroid/protocols.py", line 17, in 247s from astroid import bases, decorators, nodes, util 247s File "/usr/lib/python3/dist-packages/astroid/bases.py", line 29, in 247s from astroid.interpreter import objectmodel 247s File "/usr/lib/python3/dist-packages/astroid/interpreter/objectmodel.py", line 38, in 247s from astroid.manager import AstroidManager 247s File "/usr/lib/python3/dist-packages/astroid/manager.py", line 20, in 247s from astroid.builder import AstroidBuilder, build_namespace_package_module 247s File "/usr/lib/python3/dist-packages/astroid/builder.py", line 24, in 247s from astroid import bases, modutils, nodes, raw_building, rebuilder, util 247s File "/usr/lib/python3/dist-packages/astroid/modutils.py", line 36, in 247s from astroid.interpreter._import import spec, util 247s File "", line 471, in _lock_unlock_module 247s File "", line 311, in acquire 247s File "", line 158, in __init__ 247s KeyboardInterrupt 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-2b45b53b-cb42-42fe-b559-92d67ea7c621.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42987 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36699 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b45b53b-cb42-42fe-b559-92d67ea7c621, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 387.870000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 8.370000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx24j7yst/runtime/kernel-d6e836fd-4e62-4561-8ba0-6bfa963d9d93.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46637 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46335 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: d6e836fd-4e62-4561-8ba0-6bfa963d9d93, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 61.500000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d6e836fd-4e62-4561-8ba0-6bfa963d9d93 247s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93/interrupt (::1) 0.720000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 247s yield maybe_future(km.restart_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 247s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 247s await ensure_async(kernel.restart_kernel(now=now)) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 247s await self._async_shutdown_kernel(now=now, restart=True) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93/restart (::1) 9.400000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 247s yielded = ctx_run(next, result) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 (::1) 23.410000ms referer=None 247s ________________________ KernelAPITest.test_no_kernels _________________________ 247s 247s self = 247s 247s def test_no_kernels(self): 247s """Make sure there are no kernels running at the start""" 247s kernels = self.kern_api.list().json() 247s > self.assertEqual(kernels, []) 247s E AssertionError: Lists differ: [{'id': '2b45b53b-cb42-42fe-b559-92d67ea7c[281 chars]: 0}] != [] 247s E 247s E First list contains 2 additional elements. 247s E First extra element 0: 247s E {'id': '2b45b53b-cb42-42fe-b559-92d67ea7c621', 'name': 'python3', 'last_activity': '2026-01-30T06:06:38.255301Z', 'execution_state': 'starting', 'connections': 0} 247s E 247s E + [] 247s E - [{'connections': 0, 247s E - 'execution_state': 'starting', 247s E - 'id': '2b45b53b-cb42-42fe-b559-92d67ea7c621', 247s E - 'last_activity': '2026-01-30T06:06:38.255301Z', 247s E - 'name': 'python3'}, 247s E - {'connections': 0, 247s E - 'execution_state': 'starting', 247s E - 'id': 'd6e836fd-4e62-4561-8ba0-6bfa963d9d93', 247s E - 'last_activity': '2026-01-30T06:06:38.368739Z', 247s E - 'name': 'python3'}] 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.260000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b45b53b-cb42-42fe-b559-92d67ea7c621 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2b45b53b-cb42-42fe-b559-92d67ea7c621 (::1) 1.180000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d6e836fd-4e62-4561-8ba0-6bfa963d9d93 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d6e836fd-4e62-4561-8ba0-6bfa963d9d93 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d6e836fd-4e62-4561-8ba0-6bfa963d9d93 (::1) 0.830000ms 247s ---------------------------- Captured log teardown ----------------------------- 247s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 247s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 247s _____________________ AsyncKernelAPITest.test_connections ______________________ 247s 247s self = 247s 247s def tearDown(self): 247s for k in self.kern_api.list().json(): 247s > self.kern_api.shutdown(k['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log setup ------------------------------ 247s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5rww_ehj/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5rww_ehj/etc/jupyter'] for config files 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5rww_ehj/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5rww_ehj/config 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5rww_ehj/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5rww_ehj/config 247s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5rww_ehj/notebooks 247s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 247s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 247s WARNING NotebookApp:handlers.py:612 Forbidden 247s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.880000ms referer=None 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-15d8c05e-d425-42be-a372-4b935446b1be.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33819 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35451 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 15d8c05e-d425-42be-a372-4b935446b1be, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.920000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 0.470000ms 247s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be/channels 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 247s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58799 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (starting) 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (busy) 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (idle) 247s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 247s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 15d8c05e-d425-42be-a372-4b935446b1be) to 5.4 (client). 247s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be/channels (::1) 1361.220000ms 247s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be/channels 247s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35451 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58799 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33819 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38879 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58799 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33819 247s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 247s Setting websocket_ping_timeout=30000 247s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (busy) 247s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (idle) 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (busy) 247s DEBUG NotebookApp:kernelmanager.py:423 activity on 15d8c05e-d425-42be-a372-4b935446b1be: status (idle) 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 3.060000ms 247s DEBUG NotebookApp:handlers.py:579 Websocket closed 15d8c05e-d425-42be-a372-4b935446b1be:6214cafd-748c6377e095a29f71542434 247s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 15d8c05e-d425-42be-a372-4b935446b1be:6214cafd-748c6377e095a29f71542434 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 0.380000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 1.520000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.970000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15d8c05e-d425-42be-a372-4b935446b1be 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15d8c05e-d425-42be-a372-4b935446b1be 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 10.980000ms referer=None 247s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 247s 247s self = 247s 247s def tearDown(self): 247s for k in self.kern_api.list().json(): 247s > self.kern_api.shutdown(k['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-52a485cc-3cf5-458b-99f5-ff23ebd7dab0.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42821 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50517 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 52a485cc-3cf5-458b-99f5-ff23ebd7dab0, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15d8c05e-d425-42be-a372-4b935446b1be 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15d8c05e-d425-42be-a372-4b935446b1be 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/15d8c05e-d425-42be-a372-4b935446b1be (::1) 0.530000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/52a485cc-3cf5-458b-99f5-ff23ebd7dab0 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/52a485cc-3cf5-458b-99f5-ff23ebd7dab0', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 247s from typing import TYPE_CHECKING, Any 247s File "/usr/lib/python3.13/typing.py", line 3571, in 247s class BinaryIO(IO[bytes]): 247s ...<10 lines>... 247s pass 247s File "/usr/lib/python3.13/typing.py", line 3577, in BinaryIO 247s def write(self, s: Union[bytes, bytearray]) -> int: 247s ~~~~~^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/typing.py", line 429, in inner 247s return _caches[func](*args, **kwds) 247s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 247s return self._getitem(self, parameters) 247s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/typing.py", line 793, in Union 247s if len(parameters) == 2 and type(None) in parameters: 247s ~~~~^^^^^^ 247s KeyboardInterrupt 247s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 247s 247s self = 247s 247s def test_kernel_handler(self): 247s # GET kernel with given id 247s kid = self.kern_api.start().json()['id'] 247s r = self.kern_api.get(kid) 247s kern1 = r.json() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(kern1, dict) 247s self.assertIn('id', kern1) 247s self.assertEqual(kern1['id'], kid) 247s 247s # Request a bad kernel id and check that a JSON 247s # message is returned! 247s bad_id = '111-111-111-111-111' 247s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 247s self.kern_api.get(bad_id) 247s 247s # DELETE kernel with id 247s > r = self.kern_api.shutdown(kid) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-f3c7597a-8975-4d16-9811-919edb744176.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53587 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35217 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: f3c7597a-8975-4d16-9811-919edb744176, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.830000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176 (::1) 0.420000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s 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 247s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 247s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.040000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3c7597a-8975-4d16-9811-919edb744176 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3c7597a-8975-4d16-9811-919edb744176 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176 (::1) 4.940000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.330000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/52a485cc-3cf5-458b-99f5-ff23ebd7dab0 (::1) 1.360000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3c7597a-8975-4d16-9811-919edb744176 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3c7597a-8975-4d16-9811-919edb744176 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f3c7597a-8975-4d16-9811-919edb744176 (::1) 0.430000ms 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 247s from glob import _Globber, _no_recurse_symlinks 247s File "/usr/lib/python3.13/glob.py", line 5, in 247s import re 247s File "/usr/lib/python3.13/re/__init__.py", line 125, in 247s import enum 247s File "", line 1360, in _find_and_load 247s File "", line 1331, in _find_and_load_unlocked 247s File "", line 935, in _load_unlocked 247s File "", line 1019, in exec_module 247s File "", line 1152, in get_code 247s File "", line 781, in _compile_bytecode 247s KeyboardInterrupt 247s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 247s 247s self = 247s 247s def test_main_kernel_handler(self): 247s # POST request 247s r = self.kern_api.start() 247s kern1 = r.json() 247s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 247s self.assertEqual(r.status_code, 201) 247s self.assertIsInstance(kern1, dict) 247s 247s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 247s expected_csp = '; '.join([ 247s "frame-ancestors 'self'", 247s 'report-uri ' + report_uri, 247s "default-src 'none'" 247s ]) 247s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 247s 247s # GET request 247s r = self.kern_api.list() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(r.json(), list) 247s self.assertEqual(r.json()[0]['id'], kern1['id']) 247s self.assertEqual(r.json()[0]['name'], kern1['name']) 247s 247s # create another kernel and check that they both are added to the 247s # list of kernels from a GET request 247s kern2 = self.kern_api.start().json() 247s assert isinstance(kern2, dict) 247s r = self.kern_api.list() 247s kernels = r.json() 247s self.assertEqual(r.status_code, 200) 247s assert isinstance(kernels, list) 247s self.assertEqual(len(kernels), 2) 247s 247s # Interrupt a kernel 247s r = self.kern_api.interrupt(kern2['id']) 247s self.assertEqual(r.status_code, 204) 247s 247s # Restart a kernel 247s > r = self.kern_api.restart(kern2['id']) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 247s return self._req('POST', url_path_join(id, 'restart')) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197/restart 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-bba396de-4e57-4848-afb9-f74b1febcdd2.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44713 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42611 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: bba396de-4e57-4848-afb9-f74b1febcdd2, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5rww_ehj/runtime/kernel-6b47b88a-3afc-4a33-a827-692740e4a197.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47413 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36457 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b47b88a-3afc-4a33-a827-692740e4a197, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 95.910000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 6b47b88a-3afc-4a33-a827-692740e4a197 247s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197/interrupt (::1) 0.440000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 247s yield maybe_future(km.restart_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 247s result = coro.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 247s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 247s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 247s yield self # This tells Task to wait for completion. 247s ^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 247s await ensure_async(kernel.restart_kernel(now=now)) 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 247s await self._async_shutdown_kernel(now=now, restart=True) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197/restart (::1) 2.630000ms referer=None 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba396de-4e57-4848-afb9-f74b1febcdd2 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba396de-4e57-4848-afb9-f74b1febcdd2 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 247s yield maybe_future(km.shutdown_kernel(kernel_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 247s 247s self = 247s 247s def test_no_kernels(self): 247s """Make sure there are no kernels running at the start""" 247s kernels = self.kern_api.list().json() 247s > self.assertEqual(kernels, []) 247s E AssertionError: Lists differ: [{'id': 'bba396de-4e57-4848-afb9-f74b1febc[281 chars]: 0}] != [] 247s E 247s E First list contains 2 additional elements. 247s E First extra element 0: 247s E {'id': 'bba396de-4e57-4848-afb9-f74b1febcdd2', 'name': 'python3', 'last_activity': '2026-01-30T06:06:40.936063Z', 'execution_state': 'starting', 'connections': 0} 247s E 247s E + [] 247s E - [{'connections': 0, 247s E - 'execution_state': 'starting', 247s E - 'id': 'bba396de-4e57-4848-afb9-f74b1febcdd2', 247s E - 'last_activity': '2026-01-30T06:06:40.936063Z', 247s E - 'name': 'python3'}, 247s E - {'connections': 0, 247s E - 'execution_state': 'starting', 247s E - 'id': '6b47b88a-3afc-4a33-a827-692740e4a197', 247s E - 'last_activity': '2026-01-30T06:06:41.034543Z', 247s E - 'name': 'python3'}] 247s 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bba396de-4e57-4848-afb9-f74b1febcdd2 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba396de-4e57-4848-afb9-f74b1febcdd2 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bba396de-4e57-4848-afb9-f74b1febcdd2 (::1) 0.440000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b47b88a-3afc-4a33-a827-692740e4a197 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b47b88a-3afc-4a33-a827-692740e4a197 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6b47b88a-3afc-4a33-a827-692740e4a197 (::1) 0.740000ms 247s ---------------------------- Captured log teardown ----------------------------- 247s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bba396de-4e57-4848-afb9-f74b1febcdd2 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15d8c05e-d425-42be-a372-4b935446b1be 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3c7597a-8975-4d16-9811-919edb744176 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52a485cc-3cf5-458b-99f5-ff23ebd7dab0 247s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 247s __________________________ SessionAPITest.test_create __________________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log setup ------------------------------ 247s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpx8sozaup/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpx8sozaup/etc/jupyter'] for config files 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx8sozaup/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx8sozaup/config 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx8sozaup/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx8sozaup/config 247s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpx8sozaup/notebooks 247s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 247s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 247s WARNING NotebookApp:handlers.py:612 Forbidden 247s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.660000ms referer=None 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.650000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-38e490ab-8b65-4423-a0af-2aefdf104694.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43601 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52575 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 38e490ab-8b65-4423-a0af-2aefdf104694, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpx8sozaup/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 85.690000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd (::1) 1.730000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.510000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 38e490ab-8b65-4423-a0af-2aefdf104694 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 38e490ab-8b65-4423-a0af-2aefdf104694 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd (::1) 78.610000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s __________________ SessionAPITest.test_create_console_session __________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1711eeab-fed4-45be-ad09-dead5aed9b09 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 247s from typing import TYPE_CHECKING, Any 247s File "/usr/lib/python3.13/typing.py", line 2805, in 247s T = TypeVar('T') # Any type. 247s KeyboardInterrupt 247s Fatal Python error: init_import_site: Failed to import the site module 247s Python runtime state: initialized 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-3b02d819-09c3-45a9-a582-318dd75faa80.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37025 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59733 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3b02d819-09c3-45a9-a582-318dd75faa80, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpx8sozaup/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.190000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 38e490ab-8b65-4423-a0af-2aefdf104694 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 38e490ab-8b65-4423-a0af-2aefdf104694 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3290d7b-8f54-4205-a7af-6df6d043b5bd (::1) 0.580000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b02d819-09c3-45a9-a582-318dd75faa80 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b02d819-09c3-45a9-a582-318dd75faa80 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1711eeab-fed4-45be-ad09-dead5aed9b09 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1711eeab-fed4-45be-ad09-dead5aed9b09', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1711eeab-fed4-45be-ad09-dead5aed9b09 (::1) 10.690000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/site.py", line 735, in 247s main() 247s ~~~~^^ 247s File "/usr/lib/python3.13/site.py", line 722, in main 247s known_paths = addsitepackages(known_paths) 247s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 247s addsitedir(sitedir, known_paths) 247s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 247s addpackage(sitedir, name, known_paths) 247s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/site.py", line 213, in addpackage 247s exec(line) 247s ~~~~^^^^^^ 247s File "", line 1, in 247s File "", line 1360, in _find_and_load 247s File "", line 1322, in _find_and_load_unlocked 247s File "", line 1262, in _find_spec 247s File "", line 1556, in find_spec 247s File "", line 1530, in _get_spec 247s File "", line 1633, in find_spec 247s File "", line 1676, in _fill_cache 247s KeyboardInterrupt 247s ____________________ SessionAPITest.test_create_deprecated _____________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/41437ad5-be14-4379-b209-27cf88594301 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-b7afc937-bbd5-4fe6-999b-b2b9d9e075ea.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40049 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40619 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: b7afc937-bbd5-4fe6-999b-b2b9d9e075ea, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpx8sozaup/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.640000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b02d819-09c3-45a9-a582-318dd75faa80 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b02d819-09c3-45a9-a582-318dd75faa80 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1711eeab-fed4-45be-ad09-dead5aed9b09 (::1) 0.610000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7afc937-bbd5-4fe6-999b-b2b9d9e075ea 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7afc937-bbd5-4fe6-999b-b2b9d9e075ea 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/41437ad5-be14-4379-b209-27cf88594301 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/41437ad5-be14-4379-b209-27cf88594301', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/41437ad5-be14-4379-b209-27cf88594301 (::1) 57.150000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 247s import functools 247s File "/usr/lib/python3.13/functools.py", line 18, in 247s from collections import namedtuple 247s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 247s from operator import eq as _eq 247s KeyboardInterrupt 247s ___________________ SessionAPITest.test_create_file_session ____________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58977 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43267 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpx8sozaup/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.770000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b7afc937-bbd5-4fe6-999b-b2b9d9e075ea 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b7afc937-bbd5-4fe6-999b-b2b9d9e075ea 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/41437ad5-be14-4379-b209-27cf88594301 (::1) 1.000000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758 (::1) 5.890000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 247s from glob import _Globber, _no_recurse_symlinks 247s File "/usr/lib/python3.13/glob.py", line 5, in 247s import re 247s File "/usr/lib/python3.13/re/__init__.py", line 125, in 247s import enum 247s File "", line 1360, in _find_and_load 247s File "", line 1331, in _find_and_load_unlocked 247s File "", line 935, in _load_unlocked 247s File "", line 1019, in exec_module 247s File "", line 1152, in get_code 247s File "", line 781, in _compile_bytecode 247s KeyboardInterrupt 247s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 247s 247s self = 247s 247s def test_create_with_kernel_id(self): 247s # create a new kernel 247s r = self.request('POST', 'api/kernels') 247s r.raise_for_status() 247s kernel = r.json() 247s 247s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 247s self.assertEqual(resp.status_code, 201) 247s newsession = resp.json() 247s self.assertIn('id', newsession) 247s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 247s self.assertEqual(newsession['kernel']['id'], kernel['id']) 247s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 247s 247s sessions = self.sess_api.list().json() 247s > self.assertEqual(sessions, [newsession]) 247s E AssertionError: Lists differ: [{'id': '26c14d21-213c-4093-a0f4-f5bd031ee758', 'p[553 chars]ne}}] != [{'id': '16efb010-819f-43b7-b8a7-0051cc9629d8', 'p[279 chars]ne}}] 247s E 247s E First differing element 0: 247s E {'id': '26c14d21-213c-4093-a0f4-f5bd031ee758', 'p[218 chars]: 0}} 247s E {'id': '16efb010-819f-43b7-b8a7-0051cc9629d8', 'p[278 chars]one}} 247s E 247s E First list contains 1 additional elements. 247s E First extra element 1: 247s E {'id': '16efb010-819f-43b7-b8a7-0051cc9629d8', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '24b4bde5-d39e-4033-8248-a8bbdb8223ca', 'name': 'python3', 'last_activity': '2026-01-30T06:06:41.915897Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 247s E 247s E Diff is 830 characters long. Set self.maxDiff to None to see it. 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-24b4bde5-d39e-4033-8248-a8bbdb8223ca.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52533 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50423 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24b4bde5-d39e-4033-8248-a8bbdb8223ca, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.210000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9f58ff-6cd4-44fa-a6f3-f48329f87f4c 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/26c14d21-213c-4093-a0f4-f5bd031ee758 (::1) 1.570000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Fatal Python error: init_import_site: Failed to import the site module 247s Python runtime state: initialized 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 5.980000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-15a13a9e-6e61-4fd3-8d65-5e1dc28e7505.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55535 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50899 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 15a13a9e-6e61-4fd3-8d65-5e1dc28e7505, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.450000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24b4bde5-d39e-4033-8248-a8bbdb8223ca 247s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 0.970000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15a13a9e-6e61-4fd3-8d65-5e1dc28e7505 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15a13a9e-6e61-4fd3-8d65-5e1dc28e7505 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 5.700000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/site.py", line 79, in 247s import os 247s File "/usr/lib/python3.13/os.py", line 29, in 247s from _collections_abc import _check_methods 247s File "/usr/lib/python3.13/_collections_abc.py", line 846, in 247s class MappingView(Sized): 247s ...<12 lines>... 247s __class_getitem__ = classmethod(GenericAlias) 247s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 247s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 247s KeyboardInterrupt 247s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.430000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx8sozaup/runtime/kernel-8798589e-0f7b-45bf-95ec-fe19048b88b5.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52303 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57327 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8798589e-0f7b-45bf-95ec-fe19048b88b5, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpx8sozaup/notebooks/foo'} 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15a13a9e-6e61-4fd3-8d65-5e1dc28e7505 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15a13a9e-6e61-4fd3-8d65-5e1dc28e7505 247s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 15.060000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8798589e-0f7b-45bf-95ec-fe19048b88b5 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8798589e-0f7b-45bf-95ec-fe19048b88b5 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 247s yielded = self.gen.send(value) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 247s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 247s stopper = ensure_async(km.shutdown_kernel(now, restart)) 247s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 247s return _runner_map[name].run(inner) 247s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 247s return fut.result(None) 247s ~~~~~~~~~~^^^^^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 247s return self.__get_result() 247s ~~~~~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 247s raise self._exception 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/16efb010-819f-43b7-b8a7-0051cc9629d8 (::1) 6.760000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 247s from glob import _Globber, _no_recurse_symlinks 247s File "/usr/lib/python3.13/glob.py", line 6, in 247s import fnmatch 247s KeyboardInterrupt 247s _______________________ AsyncSessionAPITest.test_create ________________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log setup ------------------------------ 247s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmptm3jytzu/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmptm3jytzu/etc/jupyter'] for config files 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptm3jytzu/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptm3jytzu/config 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptm3jytzu/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 247s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptm3jytzu/config 247s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmptm3jytzu/notebooks 247s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 247s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 247s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 247s WARNING NotebookApp:handlers.py:612 Forbidden 247s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.760000ms referer=None 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.540000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-1a6b6e80-af50-4018-9330-d9b82cb1b977.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59607 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58449 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1a6b6e80-af50-4018-9330-d9b82cb1b977, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptm3jytzu/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.790000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e (::1) 0.540000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a6b6e80-af50-4018-9330-d9b82cb1b977 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a6b6e80-af50-4018-9330-d9b82cb1b977 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e (::1) 6.130000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 247s import json 247s File "", line 1357, in _find_and_load 247s File "", line 418, in __enter__ 247s File "", line 304, in acquire 247s KeyboardInterrupt 247s _______________ AsyncSessionAPITest.test_create_console_session ________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5bb6b182-ae9c-4013-bdeb-76436989e696 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Exception ignored in: .cb at 0x3ff8e4d31a0> 247s Traceback (most recent call last): 247s File "", line 446, in cb 247s KeyboardInterrupt: 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-2ca51ee5-3b44-4d01-8463-e268b7d0a41f.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35515 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55157 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2ca51ee5-3b44-4d01-8463-e268b7d0a41f, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptm3jytzu/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.520000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1a6b6e80-af50-4018-9330-d9b82cb1b977 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1a6b6e80-af50-4018-9330-d9b82cb1b977 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cac1397f-cf00-4ce5-9fb0-71dab763f43e (::1) 0.770000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ca51ee5-3b44-4d01-8463-e268b7d0a41f 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ca51ee5-3b44-4d01-8463-e268b7d0a41f 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5bb6b182-ae9c-4013-bdeb-76436989e696 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5bb6b182-ae9c-4013-bdeb-76436989e696', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5bb6b182-ae9c-4013-bdeb-76436989e696 (::1) 5.570000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 247s gc.collect() 247s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 247s 247s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ea44638f-ad35-437c-a77d-300fa284d95f 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s Traceback (most recent call last): 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-c82e9178-eadb-4415-8de6-70e24e6b61b9.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34361 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33395 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: c82e9178-eadb-4415-8de6-70e24e6b61b9, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptm3jytzu/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.500000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.420000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ca51ee5-3b44-4d01-8463-e268b7d0a41f 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ca51ee5-3b44-4d01-8463-e268b7d0a41f 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5bb6b182-ae9c-4013-bdeb-76436989e696 (::1) 1.340000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c82e9178-eadb-4415-8de6-70e24e6b61b9 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c82e9178-eadb-4415-8de6-70e24e6b61b9 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ea44638f-ad35-437c-a77d-300fa284d95f (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ea44638f-ad35-437c-a77d-300fa284d95f', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ea44638f-ad35-437c-a77d-300fa284d95f (::1) 15.350000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 247s from glob import _Globber, _no_recurse_symlinks 247s File "/usr/lib/python3.13/glob.py", line 5, in 247s import re 247s File "/usr/lib/python3.13/re/__init__.py", line 125, in 247s import enum 247s File "/usr/lib/python3.13/enum.py", line 1109, in 247s class Enum(metaclass=EnumType): 247s ...<230 lines>... 247s return self._value_ 247s File "/usr/lib/python3.13/enum.py", line 489, in __prepare__ 247s enum_dict = EnumDict(cls) 247s KeyboardInterrupt 247s _________________ AsyncSessionAPITest.test_create_file_session _________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d748ee8a-ec06-418d-8bdf-07a7ff800485 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-ca9d98a4-dcda-4c53-9367-b74106696a86.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34515 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58487 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: ca9d98a4-dcda-4c53-9367-b74106696a86, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmptm3jytzu/notebooks/foo'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.600000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.860000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c82e9178-eadb-4415-8de6-70e24e6b61b9 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c82e9178-eadb-4415-8de6-70e24e6b61b9 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ea44638f-ad35-437c-a77d-300fa284d95f (::1) 1.460000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca9d98a4-dcda-4c53-9367-b74106696a86 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca9d98a4-dcda-4c53-9367-b74106696a86 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d748ee8a-ec06-418d-8bdf-07a7ff800485 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d748ee8a-ec06-418d-8bdf-07a7ff800485', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s --------------------------- Captured stderr teardown --------------------------- 247s Fatal Python error: init_import_site: Failed to import the site module 247s Python runtime state: initialized 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/site.py", line 735, in 247s main() 247s ~~~~^^ 247s File "/usr/lib/python3.13/site.py", line 722, in main 247s known_paths = addsitepackages(known_paths) 247s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 247s addsitedir(sitedir, known_paths) 247s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/site.py", line 248, in addsitedir 247s names = os.listdir(sitedir) 247s KeyboardInterrupt 247s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 247s 247s self = 247s 247s def test_create_with_kernel_id(self): 247s # create a new kernel 247s r = self.request('POST', 'api/kernels') 247s r.raise_for_status() 247s kernel = r.json() 247s 247s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 247s self.assertEqual(resp.status_code, 201) 247s newsession = resp.json() 247s self.assertIn('id', newsession) 247s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 247s self.assertEqual(newsession['kernel']['id'], kernel['id']) 247s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 247s 247s sessions = self.sess_api.list().json() 247s > self.assertEqual(sessions, [newsession]) 247s E AssertionError: Lists differ: [{'id': 'd748ee8a-ec06-418d-8bdf-07a7ff800485', 'p[553 chars]ne}}] != [{'id': 'c60a14b4-aa34-4f96-a057-c4a437479ac5', 'p[279 chars]ne}}] 247s E 247s E First differing element 0: 247s E {'id': 'd748ee8a-ec06-418d-8bdf-07a7ff800485', 'p[218 chars]: 0}} 247s E {'id': 'c60a14b4-aa34-4f96-a057-c4a437479ac5', 'p[278 chars]one}} 247s E 247s E First list contains 1 additional elements. 247s E First extra element 1: 247s E {'id': 'c60a14b4-aa34-4f96-a057-c4a437479ac5', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '47b8f6a9-e60c-40f3-931a-ea65757e1ffc', 'name': 'python3', 'last_activity': '2026-01-30T06:06:42.769817Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 247s E 247s E Diff is 830 characters long. Set self.maxDiff to None to see it. 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-47b8f6a9-e60c-40f3-931a-ea65757e1ffc.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60377 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36345 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: 47b8f6a9-e60c-40f3-931a-ea65757e1ffc, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.870000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.640000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca9d98a4-dcda-4c53-9367-b74106696a86 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca9d98a4-dcda-4c53-9367-b74106696a86 247s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d748ee8a-ec06-418d-8bdf-07a7ff800485 (::1) 1.430000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ----------------------------- Captured stderr call ----------------------------- 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 247s from pathlib import Path 247s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 247s from ._abc import * 247s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 247s from glob import _Globber, _no_recurse_symlinks 247s File "/usr/lib/python3.13/glob.py", line 236, in 247s magic_check = re.compile('([*?[])') 247s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 247s return _compile(pattern, flags) 247s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 247s p = _compiler.compile(pattern, flags) 247s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 247s p = _parser.parse(p, flags) 247s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 247s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 247s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 247s itemsappend(_parse(source, state, verbose, nested + 1, 247s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s not nested and not items)) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3.13/re/_parser.py", line 709, in _parse 247s start = source.tell() - 1 247s ~~~~~~~~~~~^^ 247s File "/usr/lib/python3.13/re/_parser.py", line 292, in tell 247s def tell(self): 247s 247s KeyboardInterrupt 247s Exception ignored in: .KeyedRef.remove at 0x3ffb2ad0b80> 247s Traceback (most recent call last): 247s File "", line 91, in remove 247s KeyboardInterrupt: 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.590000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-b51afe9f-1831-4db1-bda5-e98de2767cc7.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57523 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38351 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: b51afe9f-1831-4db1-bda5-e98de2767cc7, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.120000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47b8f6a9-e60c-40f3-931a-ea65757e1ffc 247s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 0.780000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.370000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b51afe9f-1831-4db1-bda5-e98de2767cc7 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b51afe9f-1831-4db1-bda5-e98de2767cc7 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 15.630000ms referer=None 247s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 247s 247s @self.addCleanup 247s def cleanup_sessions(): 247s for session in self.sess_api.list().json(): 247s > self.sess_api.delete(session['id']) 247s 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 247s return self._req('DELETE', id) 247s ^^^^^^^^^^^^^^^^^^^^^^^ 247s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 247s response.raise_for_status() 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s self = 247s 247s def raise_for_status(self): 247s """Raises :class:`HTTPError`, if one occurred.""" 247s 247s http_error_msg = "" 247s if isinstance(self.reason, bytes): 247s # We attempt to decode utf-8 first because some servers 247s # choose to localize their reason strings. If the string 247s # isn't utf-8, we fall back to iso-8859-1 for all other 247s # encodings. (See PR #3538) 247s try: 247s reason = self.reason.decode("utf-8") 247s except UnicodeDecodeError: 247s reason = self.reason.decode("iso-8859-1") 247s else: 247s reason = self.reason 247s 247s if 400 <= self.status_code < 500: 247s http_error_msg = ( 247s f"{self.status_code} Client Error: {reason} for url: {self.url}" 247s ) 247s 247s elif 500 <= self.status_code < 600: 247s http_error_msg = ( 247s f"{self.status_code} Server Error: {reason} for url: {self.url}" 247s ) 247s 247s if http_error_msg: 247s > raise HTTPError(http_error_msg, response=self) 247s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 247s 247s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 247s ------------------------------ Captured log call ------------------------------- 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.790000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 247s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptm3jytzu/runtime/kernel-fed5c81d-241a-4f12-bf76-c88f6f2fb84a.json'] 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38763 247s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39555 247s INFO NotebookApp:kernelmanager.py:179 Kernel started: fed5c81d-241a-4f12-bf76-c88f6f2fb84a, name: python3 247s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmptm3jytzu/notebooks/foo'} 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b51afe9f-1831-4db1-bda5-e98de2767cc7 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b51afe9f-1831-4db1-bda5-e98de2767cc7 247s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 24.590000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 247s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 247s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed5c81d-241a-4f12-bf76-c88f6f2fb84a 247s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed5c81d-241a-4f12-bf76-c88f6f2fb84a 247s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 247s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5', version='HTTP/1.1', remote_ip='::1') 247s Traceback (most recent call last): 247s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 247s result = await result 247s ^^^^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 247s future.result() 247s ~~~~~~~~~~~~~^^ 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 247s yield maybe_future(sm.delete_session(session_id)) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 247s yielded = self.gen.throw(exc) 247s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 247s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 247s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 247s value = future.result() 247s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 247s raise self._exception.with_traceback(self._exception_tb) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 247s result = coro.send(None) 247s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 247s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 247s raise km.ready.exception() # type: ignore[misc] 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 247s await kernel_awaitable 247s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 247s result = await obj 247s ^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 247s raise e 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 247s out = await method(self, *args, **kwargs) 247s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 247s await self._async_finish_shutdown(restart=restart) 247s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 247s await asyncio.wait_for( 247s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 247s ) 247s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 247s async with timeouts.timeout(timeout): 247s ~~~~~~~~~~~~~~~~^^^^^^^^^ 247s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 247s raise RuntimeError("Timeout should be used inside a task") 247s RuntimeError: Timeout should be used inside a task 247s WARNING NotebookApp:handlers.py:612 Unhandled error 247s ERROR NotebookApp:log.py:55 { 247s "Host": "localhost:12341", 247s "Accept": "*/*", 247s "User-Agent": "python-requests/2.32.5" 247s } 247s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c60a14b4-aa34-4f96-a057-c4a437479ac5 (::1) 5.320000ms referer=None 247s --------------------------- Captured stderr teardown --------------------------- 247s Traceback (most recent call last): 247s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 247s return _run_code(code, main_globals, None, 247s "__main__", mod_spec) 247s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 247s exec(code, run_globals) 247s ~~~~^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 247s from ipykernel import kernelapp as app 247s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 247s from .connect import * # noqa: F403 247s ^^^^^^^^^^^^^^^^^^^^^^ 247s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 247s import json 247s File "", line 1360, in _find_and_load 247s File "", line 1331, in _find_and_load_unlocked 247s File "", line 921, in _load_unlocked 247s File "", line 813, in module_from_spec 247s File "", line 1014, in create_module 247s KeyboardInterrupt 247s =============================== warnings summary =============================== 247s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 247s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 247s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 247s return LooseVersion(v) >= LooseVersion(check) 247s 247s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 247s services/kernels/tests/test_kernels_api.py: 72 warnings 247s services/sessions/tests/test_sessions_api.py: 96 warnings 247s /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). 247s dt = unaware(*args, **kwargs) 247s 247s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 247s /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 247s pytestmark = pytest.mark.integration_tests 247s 247s services/kernels/tests/test_kernels_api.py: 6 warnings 247s services/sessions/tests/test_sessions_api.py: 6 warnings 247s /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 247s policy = events.get_event_loop_policy() 247s 247s services/kernels/tests/test_kernels_api.py: 24 warnings 247s services/sessions/tests/test_sessions_api.py: 19 warnings 247s /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 247s loop = events.get_event_loop_policy().get_event_loop() 247s 247s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 247s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 247s loop.make_current() 247s 247s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 247s =========================== short test summary info ============================ 247s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 247s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 247s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 247s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 247s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 247s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 247s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 247s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 247s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 247s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 247s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 247s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 247s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 247s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 247s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 247s ==== 23 failed, 2 passed, 305 deselected, 228 warnings, 4 errors in 17.08s ===== 248s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 248s *** 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 256s ============================= test session starts ============================== 256s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 256s rootdir: /tmp/autopkgtest.n0cVOx/autopkgtest_tmp 256s plugins: typeguard-4.4.4 256s collected 330 items / 307 deselected / 23 selected 256s run-last-failure: rerun previous 23 failures 256s 258s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 261s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 261s 261s ==================================== ERRORS ==================================== 261s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 261s 261s self = 261s 261s def tearDown(self): 261s for k in self.kern_api.list().json(): 261s > self.kern_api.shutdown(k['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Fatal Python error: init_import_site: Failed to import the site module 261s Python runtime state: initialized 261s Traceback (most recent call last): 261s File "", line 1360, in _find_and_load 261s File "", line 1331, in _find_and_load_unlocked 261s File "", line 935, in _load_unlocked 261s File "", line 1019, in exec_module 261s File "", line 1152, in get_code 261s File "", line 781, in _compile_bytecode 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-5c7fe102-9028-4341-8fea-d364f7e032a2.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34263 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56825 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c7fe102-9028-4341-8fea-d364f7e032a2, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.740000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.000000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-54ba06ff-1fff-481b-ac8a-3967d6bb5131.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36117 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54991 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54ba06ff-1fff-481b-ac8a-3967d6bb5131, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.280000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 54ba06ff-1fff-481b-ac8a-3967d6bb5131 261s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/54ba06ff-1fff-481b-ac8a-3967d6bb5131/interrupt (::1) 0.590000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 261s yield maybe_future(km.restart_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 261s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 261s await ensure_async(kernel.restart_kernel(now=now)) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 261s await self._async_shutdown_kernel(now=now, restart=True) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/54ba06ff-1fff-481b-ac8a-3967d6bb5131/restart (::1) 19.720000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c7fe102-9028-4341-8fea-d364f7e032a2 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c7fe102-9028-4341-8fea-d364f7e032a2 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 261s yielded = ctx_run(next, result) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 261s 261s self = 261s 261s def tearDown(self): 261s for k in self.kern_api.list().json(): 261s > self.kern_api.shutdown(k['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1647, in find_spec 261s File "", line 133, in _path_join 261s KeyboardInterrupt 261s Traceback (most recent call last): 261s File "", line 1513, in _path_importer_cache 261s KeyError: '/usr/lib/python3.13/json' 261s 261s During handling of the above exception, another exception occurred: 261s 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-67c6d053-2ae9-46ee-ab78-70364ebe6d35.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51261 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60339 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 67c6d053-2ae9-46ee-ab78-70364ebe6d35, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.050000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-30390613-1ae9-48cc-83cc-53d88766dbb5.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48461 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44859 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 30390613-1ae9-48cc-83cc-53d88766dbb5, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.800000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 30390613-1ae9-48cc-83cc-53d88766dbb5 261s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/30390613-1ae9-48cc-83cc-53d88766dbb5/interrupt (::1) 0.480000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 261s yield maybe_future(km.restart_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 261s result = coro.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 261s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 261s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 261s yield self # This tells Task to wait for completion. 261s ^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 261s await ensure_async(kernel.restart_kernel(now=now)) 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 261s await self._async_shutdown_kernel(now=now, restart=True) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/30390613-1ae9-48cc-83cc-53d88766dbb5/restart (::1) 2.590000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 (::1) 4.530000ms referer=None 261s --------------------------- Captured stderr teardown --------------------------- 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 261s import json 261s File "/usr/lib/python3.13/json/__init__.py", line 106, in 261s from .decoder import JSONDecoder, JSONDecodeError 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1528, in _get_spec 261s File "", line 1515, in _path_importer_cache 261s File "", line 1493, in _path_hooks 261s KeyboardInterrupt 261s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/site.py", line 735, in 261s main() 261s ~~~~^^ 261s File "/usr/lib/python3.13/site.py", line 722, in main 261s known_paths = addsitepackages(known_paths) 261s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 261s addsitedir(sitedir, known_paths) 261s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 261s addpackage(sitedir, name, known_paths) 261s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/site.py", line 213, in addpackage 261s exec(line) 261s ~~~~^^^^^^ 261s File "", line 1, in 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1633, in find_spec 261s File "", line 1676, in _fill_cache 261s KeyboardInterrupt 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-16b71c2e-7ff8-4b80-8d5c-86902c0a3149.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51889 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42363 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 16b71c2e-7ff8-4b80-8d5c-86902c0a3149, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.860000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cb63900e-4c64-4a39-b586-aa855acec7ee (::1) 0.710000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1648, in find_spec 261s KeyboardInterrupt 261s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/enum.py", line 299, in __set_name__ 261s enum_member = enum_class._value2member_map_[value] 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s KeyError: 805306368 261s 261s During handling of the above exception, another exception occurred: 261s 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-999e54a4-d4f0-4ef6-bb71-8f6c628c75cc.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54807 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47313 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.640000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d (::1) 1.220000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 13.330000ms referer=None 261s --------------------------- Captured stderr teardown --------------------------- 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 261s from .asynchronous import AsyncKernelClient 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 261s from .client import AsyncKernelClient # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 261s import zmq.asyncio 261s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 261s from zmq import backend 261s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 261s _ns = select_backend(first) 261s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 261s mod = import_module(name) 261s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 261s return _bootstrap._gcd_import(name[level:], package, level) 261s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 261s from . import _zmq 261s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 261s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 359, in 261s class Event(IntFlag): 261s ...<59 lines>... 261s ALL_V2 = ALL_V1 | PIPES_STATS 261s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 261s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 261s File "/usr/lib/python3.13/enum.py", line 312, in __set_name__ 261s or not issubclass(enum_class, Flag) 261s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 261s KeyboardInterrupt 261s Error calling __set_name__ on '_proto_member' instance 'PROTOCOL_ERROR_WS_UNSPECIFIED' in 'Event' 261s =================================== FAILURES =================================== 261s ______________________ KernelAPITest.test_default_kernel _______________________ 261s 261s self = 261s 261s def tearDown(self): 261s for k in self.kern_api.list().json(): 261s > self.kern_api.shutdown(k['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log setup ------------------------------ 261s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpni_h0om_/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpni_h0om_/etc/jupyter'] for config files 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpni_h0om_/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpni_h0om_/config 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpni_h0om_/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpni_h0om_/config 261s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpni_h0om_/notebooks 261s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 261s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 261s WARNING NotebookApp:handlers.py:612 Forbidden 261s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 2.470000ms referer=None 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 261s from .asynchronous import AsyncKernelClient 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 261s from .client import AsyncKernelClient # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 261s import zmq.asyncio 261s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 56, in 261s from zmq.backend import * # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "", line 1390, in _handle_fromlist 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60025 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47645 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 106.190000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 261s yielded = ctx_run(next, result) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc (::1) 18.120000ms referer=None 261s ______________________ KernelAPITest.test_kernel_handler _______________________ 261s 261s self = 261s 261s def test_kernel_handler(self): 261s # GET kernel with given id 261s kid = self.kern_api.start().json()['id'] 261s r = self.kern_api.get(kid) 261s kern1 = r.json() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(kern1, dict) 261s self.assertIn('id', kern1) 261s self.assertEqual(kern1['id'], kid) 261s 261s # Request a bad kernel id and check that a JSON 261s # message is returned! 261s bad_id = '111-111-111-111-111' 261s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 261s self.kern_api.get(bad_id) 261s 261s # DELETE kernel with id 261s > r = self.kern_api.shutdown(kid) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 261s from .manager import AsyncKernelManager, KernelManager, run_kernel 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 36, in 261s from . import kernelspec 261s File "/usr/lib/python3/dist-packages/jupyter_client/kernelspec.py", line 18, in 261s from .provisioning import KernelProvisionerFactory as KPF # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1629, in find_spec 261s File "", line 152, in _path_stat 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-2ea36d9e-423d-427a-88bd-c92842dff5ab.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54269 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38679 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2ea36d9e-423d-427a-88bd-c92842dff5ab, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 56.440000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab (::1) 0.530000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s 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 261s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 261s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 30.520000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ea36d9e-423d-427a-88bd-c92842dff5ab 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ea36d9e-423d-427a-88bd-c92842dff5ab 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 261s yielded = ctx_run(next, result) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab (::1) 22.300000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.610000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/effaed20-2a11-4d4d-a9d6-ebdf83e6c8dc (::1) 1.480000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2ea36d9e-423d-427a-88bd-c92842dff5ab 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2ea36d9e-423d-427a-88bd-c92842dff5ab 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2ea36d9e-423d-427a-88bd-c92842dff5ab (::1) 0.550000ms 261s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 261s 261s self = 261s 261s def test_main_kernel_handler(self): 261s # POST request 261s r = self.kern_api.start() 261s kern1 = r.json() 261s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 261s self.assertEqual(r.status_code, 201) 261s self.assertIsInstance(kern1, dict) 261s 261s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 261s expected_csp = '; '.join([ 261s "frame-ancestors 'self'", 261s 'report-uri ' + report_uri, 261s "default-src 'none'" 261s ]) 261s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 261s 261s # GET request 261s r = self.kern_api.list() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(r.json(), list) 261s self.assertEqual(r.json()[0]['id'], kern1['id']) 261s self.assertEqual(r.json()[0]['name'], kern1['name']) 261s 261s # create another kernel and check that they both are added to the 261s # list of kernels from a GET request 261s kern2 = self.kern_api.start().json() 261s assert isinstance(kern2, dict) 261s r = self.kern_api.list() 261s kernels = r.json() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(kernels, list) 261s self.assertEqual(len(kernels), 2) 261s 261s # Interrupt a kernel 261s r = self.kern_api.interrupt(kern2['id']) 261s self.assertEqual(r.status_code, 204) 261s 261s # Restart a kernel 261s > r = self.kern_api.restart(kern2['id']) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 261s return self._req('POST', url_path_join(id, 'restart')) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/54ba06ff-1fff-481b-ac8a-3967d6bb5131/restart 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Fatal Python error: init_import_site: Failed to import the site module 261s Python runtime state: initialized 261s Traceback (most recent call last): 261s File "", line 1360, in _find_and_load 261s File "", line 1331, in _find_and_load_unlocked 261s File "", line 935, in _load_unlocked 261s File "", line 1019, in exec_module 261s File "", line 1152, in get_code 261s File "", line 781, in _compile_bytecode 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-5c7fe102-9028-4341-8fea-d364f7e032a2.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34263 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56825 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c7fe102-9028-4341-8fea-d364f7e032a2, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.740000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.000000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpni_h0om_/runtime/kernel-54ba06ff-1fff-481b-ac8a-3967d6bb5131.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36117 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54991 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54ba06ff-1fff-481b-ac8a-3967d6bb5131, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.280000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 54ba06ff-1fff-481b-ac8a-3967d6bb5131 261s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/54ba06ff-1fff-481b-ac8a-3967d6bb5131/interrupt (::1) 0.590000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 261s yield maybe_future(km.restart_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 261s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 261s await ensure_async(kernel.restart_kernel(now=now)) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 261s await self._async_shutdown_kernel(now=now, restart=True) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/54ba06ff-1fff-481b-ac8a-3967d6bb5131/restart (::1) 19.720000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.040000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c7fe102-9028-4341-8fea-d364f7e032a2 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c7fe102-9028-4341-8fea-d364f7e032a2 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 261s yielded = ctx_run(next, result) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ________________________ KernelAPITest.test_no_kernels _________________________ 261s 261s self = 261s 261s def test_no_kernels(self): 261s """Make sure there are no kernels running at the start""" 261s kernels = self.kern_api.list().json() 261s > self.assertEqual(kernels, []) 261s E AssertionError: Lists differ: [{'id': '5c7fe102-9028-4341-8fea-d364f7e03[281 chars]: 0}] != [] 261s E 261s E First list contains 2 additional elements. 261s E First extra element 0: 261s E {'id': '5c7fe102-9028-4341-8fea-d364f7e032a2', 'name': 'python3', 'last_activity': '2026-01-30T06:06:53.749259Z', 'execution_state': 'starting', 'connections': 0} 261s E 261s E + [] 261s E - [{'connections': 0, 261s E - 'execution_state': 'starting', 261s E - 'id': '5c7fe102-9028-4341-8fea-d364f7e032a2', 261s E - 'last_activity': '2026-01-30T06:06:53.749259Z', 261s E - 'name': 'python3'}, 261s E - {'connections': 0, 261s E - 'execution_state': 'starting', 261s E - 'id': '54ba06ff-1fff-481b-ac8a-3967d6bb5131', 261s E - 'last_activity': '2026-01-30T06:06:53.782913Z', 261s E - 'name': 'python3'}] 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 261s ---------------------------- Captured stderr setup ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 261s from .asynchronous import AsyncKernelClient 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 261s from .client import AsyncKernelClient # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 261s import zmq.asyncio 261s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 261s from zmq import sugar 261s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 261s from zmq.sugar import context, frame, poll, socket, tracker, version 261s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 40, in 261s class Context(ContextBase, AttributeSetter, Generic[_SocketType]): 261s ...<373 lines>... 261s del self.sockopts[opt] 261s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 87, in Context 261s @overload 261s ^^^^^^^^ 261s File "/usr/lib/python3.13/typing.py", line 2708, in overload 261s def overload(func): 261s 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.410000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c7fe102-9028-4341-8fea-d364f7e032a2 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c7fe102-9028-4341-8fea-d364f7e032a2 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5c7fe102-9028-4341-8fea-d364f7e032a2 (::1) 1.680000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54ba06ff-1fff-481b-ac8a-3967d6bb5131 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54ba06ff-1fff-481b-ac8a-3967d6bb5131 261s ---------------------------- Captured log teardown ----------------------------- 261s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 261s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 261s _____________________ AsyncKernelAPITest.test_connections ______________________ 261s 261s self = 261s 261s def tearDown(self): 261s for k in self.kern_api.list().json(): 261s > self.kern_api.shutdown(k['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log setup ------------------------------ 261s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp611u9byz/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp611u9byz/etc/jupyter'] for config files 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp611u9byz/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp611u9byz/config 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp611u9byz/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp611u9byz/config 261s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp611u9byz/notebooks 261s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 261s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 261s WARNING NotebookApp:handlers.py:612 Forbidden 261s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.390000ms referer=None 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-001cfa26-1a19-4e56-9982-c567d7d0f830.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52541 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39597 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 001cfa26-1a19-4e56-9982-c567d7d0f830, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.010000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 0.860000ms 261s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830/channels 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 261s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32935 261s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 261s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 001cfa26-1a19-4e56-9982-c567d7d0f830) to 5.4 (client). 261s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830/channels (::1) 525.200000ms 261s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830/channels 261s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39597 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32935 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52541 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34065 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32935 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52541 261s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 261s Setting websocket_ping_timeout=30000 261s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 1.120000ms 261s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:handlers.py:579 Websocket closed 001cfa26-1a19-4e56-9982-c567d7d0f830:9b012d10-79fac870a80765f0ba8e2599 261s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 001cfa26-1a19-4e56-9982-c567d7d0f830:9b012d10-79fac870a80765f0ba8e2599 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 001cfa26-1a19-4e56-9982-c567d7d0f830:iopub 261s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 001cfa26-1a19-4e56-9982-c567d7d0f830:iopub 261s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 001cfa26-1a19-4e56-9982-c567d7d0f830:iopub 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 0.450000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 0.370000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 001cfa26-1a19-4e56-9982-c567d7d0f830 261s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 001cfa26-1a19-4e56-9982-c567d7d0f830:9b012d10-79fac870a80765f0ba8e2599 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 17.980000ms referer=None 261s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 261s 261s self = 261s 261s def tearDown(self): 261s for k in self.kern_api.list().json(): 261s > self.kern_api.shutdown(k['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5dbedcc6-7be8-4259-9152-22952f32d9b1 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-5dbedcc6-7be8-4259-9152-22952f32d9b1.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46487 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32883 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5dbedcc6-7be8-4259-9152-22952f32d9b1, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.230000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 001cfa26-1a19-4e56-9982-c567d7d0f830 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/001cfa26-1a19-4e56-9982-c567d7d0f830 (::1) 0.440000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5dbedcc6-7be8-4259-9152-22952f32d9b1 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dbedcc6-7be8-4259-9152-22952f32d9b1 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5dbedcc6-7be8-4259-9152-22952f32d9b1 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5dbedcc6-7be8-4259-9152-22952f32d9b1', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 261s from ._version import ( 261s ...<4 lines>... 261s ) 261s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 261s match = re.match(pattern, __version__) 261s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 261s return _compile(pattern, flags).match(string) 261s ~~~~~~~~^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 261s p = _compiler.compile(pattern, flags) 261s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 261s code = _code(p, flags) 261s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 261s _compile(code, p.data, flags) 261s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 261s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 261s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 261s _compile(code, av[2], flags) 261s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/re/_compiler.py", line 97, in _compile 261s code[skip] = _len(code) - skip 261s ~~~~^^^^^^ 261s KeyboardInterrupt 261s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 261s 261s self = 261s 261s def test_kernel_handler(self): 261s # GET kernel with given id 261s kid = self.kern_api.start().json()['id'] 261s r = self.kern_api.get(kid) 261s kern1 = r.json() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(kern1, dict) 261s self.assertIn('id', kern1) 261s self.assertEqual(kern1['id'], kid) 261s 261s # Request a bad kernel id and check that a JSON 261s # message is returned! 261s bad_id = '111-111-111-111-111' 261s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 261s self.kern_api.get(bad_id) 261s 261s # DELETE kernel with id 261s > r = self.kern_api.shutdown(kid) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-d40a288a-c11e-4260-98cb-91d3fc5e0b5a.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56377 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44479 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: d40a288a-c11e-4260-98cb-91d3fc5e0b5a, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.870000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d40a288a-c11e-4260-98cb-91d3fc5e0b5a (::1) 3.090000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s 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 261s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 261s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.430000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d40a288a-c11e-4260-98cb-91d3fc5e0b5a (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d40a288a-c11e-4260-98cb-91d3fc5e0b5a', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d40a288a-c11e-4260-98cb-91d3fc5e0b5a (::1) 5.800000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5dbedcc6-7be8-4259-9152-22952f32d9b1 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dbedcc6-7be8-4259-9152-22952f32d9b1 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5dbedcc6-7be8-4259-9152-22952f32d9b1 (::1) 0.440000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s --------------------------- Captured stderr teardown --------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 261s from pathlib import Path 261s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 261s from ._abc import * 261s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 261s from glob import _Globber, _no_recurse_symlinks 261s File "/usr/lib/python3.13/glob.py", line 5, in 261s import re 261s File "/usr/lib/python3.13/re/__init__.py", line 126, in 261s from . import _compiler, _parser 261s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 261s from . import _parser 261s File "/usr/lib/python3.13/re/_parser.py", line 15, in 261s from ._constants import * 261s File "/usr/lib/python3.13/re/_constants.py", line 130, in 261s ATCODES = _makecodes( 261s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 261s ...<5 lines>... 261s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 261s ) 261s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 261s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 261s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 261s KeyboardInterrupt 261s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 261s 261s self = 261s 261s def test_main_kernel_handler(self): 261s # POST request 261s r = self.kern_api.start() 261s kern1 = r.json() 261s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 261s self.assertEqual(r.status_code, 201) 261s self.assertIsInstance(kern1, dict) 261s 261s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 261s expected_csp = '; '.join([ 261s "frame-ancestors 'self'", 261s 'report-uri ' + report_uri, 261s "default-src 'none'" 261s ]) 261s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 261s 261s # GET request 261s r = self.kern_api.list() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(r.json(), list) 261s self.assertEqual(r.json()[0]['id'], kern1['id']) 261s self.assertEqual(r.json()[0]['name'], kern1['name']) 261s 261s # create another kernel and check that they both are added to the 261s # list of kernels from a GET request 261s kern2 = self.kern_api.start().json() 261s assert isinstance(kern2, dict) 261s r = self.kern_api.list() 261s kernels = r.json() 261s self.assertEqual(r.status_code, 200) 261s assert isinstance(kernels, list) 261s self.assertEqual(len(kernels), 2) 261s 261s # Interrupt a kernel 261s r = self.kern_api.interrupt(kern2['id']) 261s self.assertEqual(r.status_code, 204) 261s 261s # Restart a kernel 261s > r = self.kern_api.restart(kern2['id']) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 261s return self._req('POST', url_path_join(id, 'restart')) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/30390613-1ae9-48cc-83cc-53d88766dbb5/restart 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1647, in find_spec 261s File "", line 133, in _path_join 261s KeyboardInterrupt 261s Traceback (most recent call last): 261s File "", line 1513, in _path_importer_cache 261s KeyError: '/usr/lib/python3.13/json' 261s 261s During handling of the above exception, another exception occurred: 261s 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-67c6d053-2ae9-46ee-ab78-70364ebe6d35.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51261 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60339 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 67c6d053-2ae9-46ee-ab78-70364ebe6d35, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.050000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp611u9byz/runtime/kernel-30390613-1ae9-48cc-83cc-53d88766dbb5.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48461 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44859 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 30390613-1ae9-48cc-83cc-53d88766dbb5, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.800000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 30390613-1ae9-48cc-83cc-53d88766dbb5 261s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/30390613-1ae9-48cc-83cc-53d88766dbb5/interrupt (::1) 0.480000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 261s yield maybe_future(km.restart_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 261s result = coro.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 261s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 261s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 261s yield self # This tells Task to wait for completion. 261s ^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 261s await ensure_async(kernel.restart_kernel(now=now)) 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 261s await self._async_shutdown_kernel(now=now, restart=True) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/30390613-1ae9-48cc-83cc-53d88766dbb5/restart (::1) 2.590000ms referer=None 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 261s yield maybe_future(km.shutdown_kernel(kernel_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 (::1) 4.530000ms referer=None 261s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 261s 261s self = 261s 261s def test_no_kernels(self): 261s """Make sure there are no kernels running at the start""" 261s kernels = self.kern_api.list().json() 261s > self.assertEqual(kernels, []) 261s E AssertionError: Lists differ: [{'id': '67c6d053-2ae9-46ee-ab78-70364ebe6[281 chars]: 0}] != [] 261s E 261s E First list contains 2 additional elements. 261s E First extra element 0: 261s E {'id': '67c6d053-2ae9-46ee-ab78-70364ebe6d35', 'name': 'python3', 'last_activity': '2026-01-30T06:06:55.057972Z', 'execution_state': 'starting', 'connections': 0} 261s E 261s E + [] 261s E - [{'connections': 0, 261s E - 'execution_state': 'starting', 261s E - 'id': '67c6d053-2ae9-46ee-ab78-70364ebe6d35', 261s E - 'last_activity': '2026-01-30T06:06:55.057972Z', 261s E - 'name': 'python3'}, 261s E - {'connections': 0, 261s E - 'execution_state': 'starting', 261s E - 'id': '30390613-1ae9-48cc-83cc-53d88766dbb5', 261s E - 'last_activity': '2026-01-30T06:06:55.089191Z', 261s E - 'name': 'python3'}] 261s 261s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.580000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.460000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/67c6d053-2ae9-46ee-ab78-70364ebe6d35 (::1) 0.450000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 30390613-1ae9-48cc-83cc-53d88766dbb5 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 30390613-1ae9-48cc-83cc-53d88766dbb5 261s ---------------------------- Captured log teardown ----------------------------- 261s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 001cfa26-1a19-4e56-9982-c567d7d0f830 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 67c6d053-2ae9-46ee-ab78-70364ebe6d35 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d40a288a-c11e-4260-98cb-91d3fc5e0b5a 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5dbedcc6-7be8-4259-9152-22952f32d9b1 261s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 261s __________________________ SessionAPITest.test_create __________________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b666d583-8b52-4db0-97d9-ac0dffeb06e6 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log setup ------------------------------ 261s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5u5l2i11/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5u5l2i11/etc/jupyter'] for config files 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5u5l2i11/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5u5l2i11/config 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5u5l2i11/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5u5l2i11/config 261s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5u5l2i11/notebooks 261s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 261s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 261s WARNING NotebookApp:handlers.py:612 Forbidden 261s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.840000ms referer=None 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.540000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-55ccbb4c-f7ae-4a74-bdbe-263362808fb7.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58905 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47133 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55ccbb4c-f7ae-4a74-bdbe-263362808fb7, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5u5l2i11/notebooks/foo'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.040000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/b666d583-8b52-4db0-97d9-ac0dffeb06e6 (::1) 0.930000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.030000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55ccbb4c-f7ae-4a74-bdbe-263362808fb7 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55ccbb4c-f7ae-4a74-bdbe-263362808fb7 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b666d583-8b52-4db0-97d9-ac0dffeb06e6 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b666d583-8b52-4db0-97d9-ac0dffeb06e6', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 261s from .asynchronous import AsyncKernelClient 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 261s from .client import AsyncKernelClient # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 261s import zmq.asyncio 261s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 261s from zmq import sugar 261s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 261s from zmq.sugar import context, frame, poll, socket, tracker, version 261s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 261s from .socket import Socket, SyncSocket 261s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 9, in 261s import pickle 261s File "/usr/lib/python3.13/pickle.py", line 37, in 261s import _compat_pickle 261s File "/usr/lib/python3.13/_compat_pickle.py", line 166, in 261s REVERSE_NAME_MAPPING = dict((v, k) for (k, v) in NAME_MAPPING.items()) 261s File "/usr/lib/python3.13/_compat_pickle.py", line 166, in 261s REVERSE_NAME_MAPPING = dict((v, k) for (k, v) in NAME_MAPPING.items()) 261s ^^^^^^ 261s KeyboardInterrupt 261s __________________ SessionAPITest.test_create_console_session __________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cee0e6c9-2459-4390-b302-fb90738c14ab 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-624b3af3-c421-4cff-b372-f59153305cad.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34749 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39245 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 624b3af3-c421-4cff-b372-f59153305cad, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5u5l2i11/notebooks/foo'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 45.360000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 11.000000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55ccbb4c-f7ae-4a74-bdbe-263362808fb7 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55ccbb4c-f7ae-4a74-bdbe-263362808fb7 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b666d583-8b52-4db0-97d9-ac0dffeb06e6 (::1) 0.630000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 624b3af3-c421-4cff-b372-f59153305cad 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 624b3af3-c421-4cff-b372-f59153305cad 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cee0e6c9-2459-4390-b302-fb90738c14ab (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cee0e6c9-2459-4390-b302-fb90738c14ab', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 261s import json 261s File "/usr/lib/python3.13/json/__init__.py", line 106, in 261s from .decoder import JSONDecoder, JSONDecodeError 261s File "/usr/lib/python3.13/json/decoder.py", line 5, in 261s from json import scanner 261s File "", line 1357, in _find_and_load 261s File "", line 418, in __enter__ 261s File "", line 316, in acquire 261s KeyboardInterrupt 261s ____________________ SessionAPITest.test_create_deprecated _____________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7decaa83-8131-4347-8a4a-8bc102c1aec2 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 261s from pathlib import Path 261s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 261s from ._abc import * 261s File "/usr/lib/python3.13/pathlib/_abc.py", line 48, in 261s class UnsupportedOperation(NotImplementedError): 261s ...<3 lines>... 261s pass 261s KeyboardInterrupt 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-d3e6454f-46e3-4ef8-aeb7-8ba181154d66.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49913 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60193 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3e6454f-46e3-4ef8-aeb7-8ba181154d66, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5u5l2i11/notebooks/foo'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.550000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 624b3af3-c421-4cff-b372-f59153305cad 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 624b3af3-c421-4cff-b372-f59153305cad 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cee0e6c9-2459-4390-b302-fb90738c14ab (::1) 0.610000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3e6454f-46e3-4ef8-aeb7-8ba181154d66 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3e6454f-46e3-4ef8-aeb7-8ba181154d66 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7decaa83-8131-4347-8a4a-8bc102c1aec2 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7decaa83-8131-4347-8a4a-8bc102c1aec2', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7decaa83-8131-4347-8a4a-8bc102c1aec2 (::1) 6.780000ms referer=None 261s ___________________ SessionAPITest.test_create_file_session ____________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cb63900e-4c64-4a39-b586-aa855acec7ee 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ----------------------------- Captured stderr call ----------------------------- 261s Fatal Python error: init_import_site: Failed to import the site module 261s Python runtime state: initialized 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-6b7ff467-2f38-4198-83ad-eb1e87b8207e.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56411 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36993 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b7ff467-2f38-4198-83ad-eb1e87b8207e, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5u5l2i11/notebooks/foo'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.880000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.590000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3e6454f-46e3-4ef8-aeb7-8ba181154d66 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3e6454f-46e3-4ef8-aeb7-8ba181154d66 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7decaa83-8131-4347-8a4a-8bc102c1aec2 (::1) 0.610000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cb63900e-4c64-4a39-b586-aa855acec7ee (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cb63900e-4c64-4a39-b586-aa855acec7ee', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 261s 261s self = 261s 261s def test_create_with_kernel_id(self): 261s # create a new kernel 261s r = self.request('POST', 'api/kernels') 261s r.raise_for_status() 261s kernel = r.json() 261s 261s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 261s self.assertEqual(resp.status_code, 201) 261s newsession = resp.json() 261s self.assertIn('id', newsession) 261s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 261s self.assertEqual(newsession['kernel']['id'], kernel['id']) 261s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 261s 261s sessions = self.sess_api.list().json() 261s > self.assertEqual(sessions, [newsession]) 261s E AssertionError: Lists differ: [{'id': 'cb63900e-4c64-4a39-b586-aa855acec7ee', 'p[553 chars]ne}}] != [{'id': '985a7f4c-9efb-444e-a903-a85be0243bdd', 'p[279 chars]ne}}] 261s E 261s E First differing element 0: 261s E {'id': 'cb63900e-4c64-4a39-b586-aa855acec7ee', 'p[218 chars]: 0}} 261s E {'id': '985a7f4c-9efb-444e-a903-a85be0243bdd', 'p[278 chars]one}} 261s E 261s E First list contains 1 additional elements. 261s E First extra element 1: 261s E {'id': '985a7f4c-9efb-444e-a903-a85be0243bdd', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '16b71c2e-7ff8-4b80-8d5c-86902c0a3149', 'name': 'python3', 'last_activity': '2026-01-30T06:06:55.990413Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 261s E 261s E Diff is 830 characters long. Set self.maxDiff to None to see it. 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/site.py", line 735, in 261s main() 261s ~~~~^^ 261s File "/usr/lib/python3.13/site.py", line 722, in main 261s known_paths = addsitepackages(known_paths) 261s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 261s addsitedir(sitedir, known_paths) 261s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 261s addpackage(sitedir, name, known_paths) 261s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/site.py", line 213, in addpackage 261s exec(line) 261s ~~~~^^^^^^ 261s File "", line 1, in 261s File "", line 1360, in _find_and_load 261s File "", line 1322, in _find_and_load_unlocked 261s File "", line 1262, in _find_spec 261s File "", line 1556, in find_spec 261s File "", line 1530, in _get_spec 261s File "", line 1633, in find_spec 261s File "", line 1676, in _fill_cache 261s KeyboardInterrupt 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-16b71c2e-7ff8-4b80-8d5c-86902c0a3149.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51889 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42363 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 16b71c2e-7ff8-4b80-8d5c-86902c0a3149, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.860000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b7ff467-2f38-4198-83ad-eb1e87b8207e 261s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cb63900e-4c64-4a39-b586-aa855acec7ee (::1) 0.710000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.960000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-f1f9dd72-019c-434f-aeb6-74a4b98a92b5.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56277 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60627 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: f1f9dd72-019c-434f-aeb6-74a4b98a92b5, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.440000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16b71c2e-7ff8-4b80-8d5c-86902c0a3149 261s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 14.620000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f1f9dd72-019c-434f-aeb6-74a4b98a92b5 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f1f9dd72-019c-434f-aeb6-74a4b98a92b5 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 261s from ipykernel import kernelapp as app 261s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 261s from .connect import * # noqa: F403 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 261s import jupyter_client 261s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 261s from .asynchronous import AsyncKernelClient 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 261s from .client import AsyncKernelClient # noqa 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 261s import zmq.asyncio 261s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 261s from zmq import backend 261s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 261s _ns = select_backend(first) 261s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 261s mod = import_module(name) 261s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 261s return _bootstrap._gcd_import(name[level:], package, level) 261s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 261s from . import _zmq 261s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 261s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 92, in 261s class SocketType(IntEnum): 261s ...<31 lines>... 261s CHANNEL = 20 261s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 261s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 261s File "/usr/lib/python3.13/enum.py", line 325, in __set_name__ 261s enum_class._add_member_(member_name, enum_member) 261s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3.13/enum.py", line 1059, in _add_member_ 261s def _add_member_(cls, name, member): 261s 261s KeyboardInterrupt 261s Error calling __set_name__ on '_proto_member' instance 'PULL' in 'SocketType' 261s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.930000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5u5l2i11/runtime/kernel-4944ac4f-5546-47f4-b3e2-4f3273af12a2.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45745 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34575 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4944ac4f-5546-47f4-b3e2-4f3273af12a2, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp5u5l2i11/notebooks/foo'} 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f1f9dd72-019c-434f-aeb6-74a4b98a92b5 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f1f9dd72-019c-434f-aeb6-74a4b98a92b5 261s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 14.260000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4944ac4f-5546-47f4-b3e2-4f3273af12a2 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4944ac4f-5546-47f4-b3e2-4f3273af12a2 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/985a7f4c-9efb-444e-a903-a85be0243bdd', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 261s yielded = self.gen.send(value) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 261s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 261s stopper = ensure_async(km.shutdown_kernel(now, restart)) 261s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 261s return _runner_map[name].run(inner) 261s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 261s return fut.result(None) 261s ~~~~~~~~~~^^^^^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 261s return self.__get_result() 261s ~~~~~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 261s raise self._exception 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s --------------------------- Captured stderr teardown --------------------------- 261s Traceback (most recent call last): 261s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 261s return _run_code(code, main_globals, None, 261s "__main__", mod_spec) 261s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 261s exec(code, run_globals) 261s ~~~~^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 261s from pathlib import Path 261s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 261s from ._abc import * 261s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 261s from glob import _Globber, _no_recurse_symlinks 261s File "/usr/lib/python3.13/glob.py", line 5, in 261s import re 261s File "/usr/lib/python3.13/re/__init__.py", line 126, in 261s from . import _compiler, _parser 261s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 261s from . import _parser 261s File "/usr/lib/python3.13/re/_parser.py", line 15, in 261s from ._constants import * 261s File "/usr/lib/python3.13/re/_constants.py", line 130, in 261s ATCODES = _makecodes( 261s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 261s ...<5 lines>... 261s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 261s ) 261s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 261s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 261s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 261s KeyboardInterrupt 261s ---------------------------- Captured log teardown ----------------------------- 261s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4944ac4f-5546-47f4-b3e2-4f3273af12a2 261s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 261s _______________________ AsyncSessionAPITest.test_create ________________________ 261s 261s @self.addCleanup 261s def cleanup_sessions(): 261s for session in self.sess_api.list().json(): 261s > self.sess_api.delete(session['id']) 261s 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 261s return self._req('DELETE', id) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 261s response.raise_for_status() 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def raise_for_status(self): 261s """Raises :class:`HTTPError`, if one occurred.""" 261s 261s http_error_msg = "" 261s if isinstance(self.reason, bytes): 261s # We attempt to decode utf-8 first because some servers 261s # choose to localize their reason strings. If the string 261s # isn't utf-8, we fall back to iso-8859-1 for all other 261s # encodings. (See PR #3538) 261s try: 261s reason = self.reason.decode("utf-8") 261s except UnicodeDecodeError: 261s reason = self.reason.decode("iso-8859-1") 261s else: 261s reason = self.reason 261s 261s if 400 <= self.status_code < 500: 261s http_error_msg = ( 261s f"{self.status_code} Client Error: {reason} for url: {self.url}" 261s ) 261s 261s elif 500 <= self.status_code < 600: 261s http_error_msg = ( 261s f"{self.status_code} Server Error: {reason} for url: {self.url}" 261s ) 261s 261s if http_error_msg: 261s > raise HTTPError(http_error_msg, response=self) 261s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21 261s 261s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 261s ------------------------------ Captured log setup ------------------------------ 261s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpe47_ymmt/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpe47_ymmt/etc/jupyter'] for config files 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe47_ymmt/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe47_ymmt/config 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe47_ymmt/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 261s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe47_ymmt/config 261s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpe47_ymmt/notebooks 261s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 261s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 261s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 261s WARNING NotebookApp:handlers.py:612 Forbidden 261s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.750000ms referer=None 261s ----------------------------- Captured stderr call ----------------------------- 261s Traceback (most recent call last): 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 261s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-4632181c-6780-42e1-ab96-e7ea0f6622f6.json'] 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32873 261s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51299 261s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4632181c-6780-42e1-ab96-e7ea0f6622f6, name: python3 261s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe47_ymmt/notebooks/foo'} 261s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.380000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21 (::1) 0.450000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 261s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 261s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4632181c-6780-42e1-ab96-e7ea0f6622f6 261s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4632181c-6780-42e1-ab96-e7ea0f6622f6 261s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21 (::1) 261s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21', version='HTTP/1.1', remote_ip='::1') 261s Traceback (most recent call last): 261s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 261s result = await result 261s ^^^^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 261s future.result() 261s ~~~~~~~~~~~~~^^ 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 261s yield maybe_future(sm.delete_session(session_id)) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 261s yielded = self.gen.throw(exc) 261s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 261s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 261s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 261s value = future.result() 261s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 261s raise self._exception.with_traceback(self._exception_tb) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 261s result = coro.send(None) 261s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 261s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 261s raise km.ready.exception() # type: ignore[misc] 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 261s await kernel_awaitable 261s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 261s result = await obj 261s ^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 261s raise e 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 261s out = await method(self, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 261s await self._async_finish_shutdown(restart=restart) 261s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 261s await asyncio.wait_for( 261s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 261s ) 261s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 261s async with timeouts.timeout(timeout): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^ 261s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 261s raise RuntimeError("Timeout should be used inside a task") 261s RuntimeError: Timeout should be used inside a task 261s WARNING NotebookApp:handlers.py:612 Unhandled error 261s ERROR NotebookApp:log.py:55 { 261s "Host": "localhost:12341", 261s "Accept": "*/*", 261s "User-Agent": "python-requests/2.32.5" 261s } 261s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21 (::1) 5.280000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 261s gc.collect() 261s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 262s 262s --------------------------- Captured stderr teardown --------------------------- 262s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 262s return _run_code(code, main_globals, None, 262s "__main__", mod_spec) 262s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 262s exec(code, run_globals) 262s ~~~~^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 262s from ipykernel import kernelapp as app 262s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 262s from .connect import * # noqa: F403 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 262s from subprocess import PIPE, Popen 262s File "/usr/lib/python3.13/subprocess.py", line 49, in 262s import signal 262s File "", line 1360, in _find_and_load 262s File "", line 1331, in _find_and_load_unlocked 262s File "", line 935, in _load_unlocked 262s File "", line 1019, in exec_module 262s File "", line 1152, in get_code 262s File "", line 781, in _compile_bytecode 262s KeyboardInterrupt 262s _______________ AsyncSessionAPITest.test_create_console_session ________________ 262s 262s @self.addCleanup 262s def cleanup_sessions(): 262s for session in self.sess_api.list().json(): 262s > self.sess_api.delete(session['id']) 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 262s return self._req('DELETE', id) 262s ^^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 262s response.raise_for_status() 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s 262s def raise_for_status(self): 262s """Raises :class:`HTTPError`, if one occurred.""" 262s 262s http_error_msg = "" 262s if isinstance(self.reason, bytes): 262s # We attempt to decode utf-8 first because some servers 262s # choose to localize their reason strings. If the string 262s # isn't utf-8, we fall back to iso-8859-1 for all other 262s # encodings. (See PR #3538) 262s try: 262s reason = self.reason.decode("utf-8") 262s except UnicodeDecodeError: 262s reason = self.reason.decode("iso-8859-1") 262s else: 262s reason = self.reason 262s 262s if 400 <= self.status_code < 500: 262s http_error_msg = ( 262s f"{self.status_code} Client Error: {reason} for url: {self.url}" 262s ) 262s 262s elif 500 <= self.status_code < 600: 262s http_error_msg = ( 262s f"{self.status_code} Server Error: {reason} for url: {self.url}" 262s ) 262s 262s if http_error_msg: 262s > raise HTTPError(http_error_msg, response=self) 262s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/68d2c69a-f947-44ec-b097-979a147d7814 262s 262s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 262s ----------------------------- Captured stderr call ----------------------------- 262s Traceback (most recent call last): 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-7ddb327a-a350-4028-bf95-8eb873d0b275.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46225 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34549 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ddb327a-a350-4028-bf95-8eb873d0b275, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe47_ymmt/notebooks/foo'} 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.440000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4632181c-6780-42e1-ab96-e7ea0f6622f6 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4632181c-6780-42e1-ab96-e7ea0f6622f6 262s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/08f3f44f-6c83-4753-bbae-15d175113a21 (::1) 0.590000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ddb327a-a350-4028-bf95-8eb873d0b275 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ddb327a-a350-4028-bf95-8eb873d0b275 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/68d2c69a-f947-44ec-b097-979a147d7814 (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/68d2c69a-f947-44ec-b097-979a147d7814', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/68d2c69a-f947-44ec-b097-979a147d7814 (::1) 5.060000ms referer=None 262s --------------------------- Captured stderr teardown --------------------------- 262s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 262s return _run_code(code, main_globals, None, 262s "__main__", mod_spec) 262s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 262s exec(code, run_globals) 262s ~~~~^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 262s from pathlib import Path 262s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 262s from ._local import * 262s File "/usr/lib/python3.13/pathlib/_local.py", line 58, in 262s class PurePath(PurePathBase): 262s ...<397 lines>... 262s return '' if path_str == '.' else path_str 262s KeyboardInterrupt 262s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 262s 262s @self.addCleanup 262s def cleanup_sessions(): 262s for session in self.sess_api.list().json(): 262s > self.sess_api.delete(session['id']) 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 262s return self._req('DELETE', id) 262s ^^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 262s response.raise_for_status() 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s 262s def raise_for_status(self): 262s """Raises :class:`HTTPError`, if one occurred.""" 262s 262s http_error_msg = "" 262s if isinstance(self.reason, bytes): 262s # We attempt to decode utf-8 first because some servers 262s # choose to localize their reason strings. If the string 262s # isn't utf-8, we fall back to iso-8859-1 for all other 262s # encodings. (See PR #3538) 262s try: 262s reason = self.reason.decode("utf-8") 262s except UnicodeDecodeError: 262s reason = self.reason.decode("iso-8859-1") 262s else: 262s reason = self.reason 262s 262s if 400 <= self.status_code < 500: 262s http_error_msg = ( 262s f"{self.status_code} Client Error: {reason} for url: {self.url}" 262s ) 262s 262s elif 500 <= self.status_code < 600: 262s http_error_msg = ( 262s f"{self.status_code} Server Error: {reason} for url: {self.url}" 262s ) 262s 262s if http_error_msg: 262s > raise HTTPError(http_error_msg, response=self) 262s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9c112339-dd28-49be-b7fb-31223daf6f00 262s 262s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 262s ----------------------------- Captured stderr call ----------------------------- 262s Fatal Python error: init_import_site: Failed to import the site module 262s Python runtime state: initialized 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-0528c182-704a-4f43-981a-163d089e86be.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41561 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39347 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0528c182-704a-4f43-981a-163d089e86be, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe47_ymmt/notebooks/foo'} 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.920000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ddb327a-a350-4028-bf95-8eb873d0b275 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ddb327a-a350-4028-bf95-8eb873d0b275 262s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/68d2c69a-f947-44ec-b097-979a147d7814 (::1) 0.600000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0528c182-704a-4f43-981a-163d089e86be 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0528c182-704a-4f43-981a-163d089e86be 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9c112339-dd28-49be-b7fb-31223daf6f00 (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9c112339-dd28-49be-b7fb-31223daf6f00', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9c112339-dd28-49be-b7fb-31223daf6f00 (::1) 7.090000ms referer=None 262s --------------------------- Captured stderr teardown --------------------------- 262s Traceback (most recent call last): 262s File "", line 1360, in _find_and_load 262s File "", line 1331, in _find_and_load_unlocked 262s File "", line 935, in _load_unlocked 262s File "", line 1019, in exec_module 262s File "", line 1152, in get_code 262s File "", line 781, in _compile_bytecode 262s KeyboardInterrupt 262s _________________ AsyncSessionAPITest.test_create_file_session _________________ 262s 262s @self.addCleanup 262s def cleanup_sessions(): 262s for session in self.sess_api.list().json(): 262s > self.sess_api.delete(session['id']) 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 262s return self._req('DELETE', id) 262s ^^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 262s response.raise_for_status() 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s 262s def raise_for_status(self): 262s """Raises :class:`HTTPError`, if one occurred.""" 262s 262s http_error_msg = "" 262s if isinstance(self.reason, bytes): 262s # We attempt to decode utf-8 first because some servers 262s # choose to localize their reason strings. If the string 262s # isn't utf-8, we fall back to iso-8859-1 for all other 262s # encodings. (See PR #3538) 262s try: 262s reason = self.reason.decode("utf-8") 262s except UnicodeDecodeError: 262s reason = self.reason.decode("iso-8859-1") 262s else: 262s reason = self.reason 262s 262s if 400 <= self.status_code < 500: 262s http_error_msg = ( 262s f"{self.status_code} Client Error: {reason} for url: {self.url}" 262s ) 262s 262s elif 500 <= self.status_code < 600: 262s http_error_msg = ( 262s f"{self.status_code} Server Error: {reason} for url: {self.url}" 262s ) 262s 262s if http_error_msg: 262s > raise HTTPError(http_error_msg, response=self) 262s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d 262s 262s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-437e4061-1925-4e0a-88b8-8dbf5d9a6e62.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34217 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42211 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: 437e4061-1925-4e0a-88b8-8dbf5d9a6e62, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpe47_ymmt/notebooks/foo'} 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.900000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0528c182-704a-4f43-981a-163d089e86be 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0528c182-704a-4f43-981a-163d089e86be 262s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9c112339-dd28-49be-b7fb-31223daf6f00 (::1) 0.540000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d (::1) 5.260000ms referer=None 262s --------------------------- Captured stderr teardown --------------------------- 262s Traceback (most recent call last): 262s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 262s return _run_code(code, main_globals, None, 262s "__main__", mod_spec) 262s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 262s exec(code, run_globals) 262s ~~~~^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 262s from pathlib import Path 262s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 262s from ._local import * 262s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 262s import warnings 262s File "", line 1360, in _find_and_load 262s File "", line 1322, in _find_and_load_unlocked 262s File "", line 1256, in _find_spec 262s File "", line 1226, in __exit__ 262s KeyboardInterrupt 262s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 262s 262s self = 262s 262s def test_create_with_kernel_id(self): 262s # create a new kernel 262s r = self.request('POST', 'api/kernels') 262s r.raise_for_status() 262s kernel = r.json() 262s 262s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 262s self.assertEqual(resp.status_code, 201) 262s newsession = resp.json() 262s self.assertIn('id', newsession) 262s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 262s self.assertEqual(newsession['kernel']['id'], kernel['id']) 262s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 262s 262s sessions = self.sess_api.list().json() 262s > self.assertEqual(sessions, [newsession]) 262s E AssertionError: Lists differ: [{'id': 'a080d130-940f-4eec-830c-e973695e081d', 'pa[552 chars]ne}}] != [{'id': 'aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', 'pa[278 chars]ne}}] 262s E 262s E First differing element 0: 262s E {'id': 'a080d130-940f-4eec-830c-e973695e081d', 'pa[217 chars]: 0}} 262s E {'id': 'aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', 'pa[277 chars]one}} 262s E 262s E First list contains 1 additional elements. 262s E First extra element 1: 262s E {'id': 'aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '999e54a4-d4f0-4ef6-bb71-8f6c628c75cc', 'name': 'python3', 'last_activity': '2026-01-30T06:06:57.168576Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 262s E 262s E Diff is 830 characters long. Set self.maxDiff to None to see it. 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 262s ----------------------------- Captured stderr call ----------------------------- 262s Traceback (most recent call last): 262s File "/usr/lib/python3.13/enum.py", line 299, in __set_name__ 262s enum_member = enum_class._value2member_map_[value] 262s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 262s KeyError: 805306368 262s 262s During handling of the above exception, another exception occurred: 262s 262s Traceback (most recent call last): 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-999e54a4-d4f0-4ef6-bb71-8f6c628c75cc.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54807 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47313 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.640000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.680000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 262s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a080d130-940f-4eec-830c-e973695e081d (::1) 1.220000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 13.330000ms referer=None 262s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 262s 262s @self.addCleanup 262s def cleanup_sessions(): 262s for session in self.sess_api.list().json(): 262s > self.sess_api.delete(session['id']) 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 262s return self._req('DELETE', id) 262s ^^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 262s response.raise_for_status() 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s 262s def raise_for_status(self): 262s """Raises :class:`HTTPError`, if one occurred.""" 262s 262s http_error_msg = "" 262s if isinstance(self.reason, bytes): 262s # We attempt to decode utf-8 first because some servers 262s # choose to localize their reason strings. If the string 262s # isn't utf-8, we fall back to iso-8859-1 for all other 262s # encodings. (See PR #3538) 262s try: 262s reason = self.reason.decode("utf-8") 262s except UnicodeDecodeError: 262s reason = self.reason.decode("iso-8859-1") 262s else: 262s reason = self.reason 262s 262s if 400 <= self.status_code < 500: 262s http_error_msg = ( 262s f"{self.status_code} Client Error: {reason} for url: {self.url}" 262s ) 262s 262s elif 500 <= self.status_code < 600: 262s http_error_msg = ( 262s f"{self.status_code} Server Error: {reason} for url: {self.url}" 262s ) 262s 262s if http_error_msg: 262s > raise HTTPError(http_error_msg, response=self) 262s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c 262s 262s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 262s ----------------------------- Captured stderr call ----------------------------- 262s Traceback (most recent call last): 262s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 262s return _run_code(code, main_globals, None, 262s "__main__", mod_spec) 262s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 262s exec(code, run_globals) 262s ~~~~^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 262s from ipykernel import kernelapp as app 262s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 262s from .connect import * # noqa: F403 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 262s from typing import TYPE_CHECKING, Any 262s File "/usr/lib/python3.13/typing.py", line 3639, in 262s class _IdentityCallable(Protocol): 262s def __call__[T](self, arg: T, /) -> T: 262s ... 262s File "/usr/lib/python3.13/typing.py", line 2083, in __new__ 262s return super().__new__(mcls, name, bases, namespace, **kwargs) 262s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 262s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 262s File "/usr/lib/python3.13/typing.py", line 2212, in __init_subclass__ 262s super().__init_subclass__(*args, **kwargs) 262s ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3.13/typing.py", line 1303, in _generic_init_subclass 262s cls.__parameters__ = tuple(tvars) 262s ~~~~~^^^^^^^ 262s KeyboardInterrupt 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 7.540000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-9e83c038-f81f-446d-81b3-59a9fcc84725.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48047 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56913 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e83c038-f81f-446d-81b3-59a9fcc84725, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.640000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 262s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 113.960000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e83c038-f81f-446d-81b3-59a9fcc84725 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e83c038-f81f-446d-81b3-59a9fcc84725 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 5.990000ms referer=None 262s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 262s 262s @self.addCleanup 262s def cleanup_sessions(): 262s for session in self.sess_api.list().json(): 262s > self.sess_api.delete(session['id']) 262s 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 262s return self._req('DELETE', id) 262s ^^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 262s response.raise_for_status() 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s 262s def raise_for_status(self): 262s """Raises :class:`HTTPError`, if one occurred.""" 262s 262s http_error_msg = "" 262s if isinstance(self.reason, bytes): 262s # We attempt to decode utf-8 first because some servers 262s # choose to localize their reason strings. If the string 262s # isn't utf-8, we fall back to iso-8859-1 for all other 262s # encodings. (See PR #3538) 262s try: 262s reason = self.reason.decode("utf-8") 262s except UnicodeDecodeError: 262s reason = self.reason.decode("iso-8859-1") 262s else: 262s reason = self.reason 262s 262s if 400 <= self.status_code < 500: 262s http_error_msg = ( 262s f"{self.status_code} Client Error: {reason} for url: {self.url}" 262s ) 262s 262s elif 500 <= self.status_code < 600: 262s http_error_msg = ( 262s f"{self.status_code} Server Error: {reason} for url: {self.url}" 262s ) 262s 262s if http_error_msg: 262s > raise HTTPError(http_error_msg, response=self) 262s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c 262s 262s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 262s ----------------------------- Captured stderr call ----------------------------- 262s Traceback (most recent call last): 262s ------------------------------ Captured log call ------------------------------- 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.250000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 262s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe47_ymmt/runtime/kernel-b2711174-b596-4fe7-ab6c-8d68f70c8ee8.json'] 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55623 262s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36921 262s INFO NotebookApp:kernelmanager.py:179 Kernel started: b2711174-b596-4fe7-ab6c-8d68f70c8ee8, name: python3 262s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpe47_ymmt/notebooks/foo'} 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e83c038-f81f-446d-81b3-59a9fcc84725 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e83c038-f81f-446d-81b3-59a9fcc84725 262s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 15.620000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 262s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 262s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b2711174-b596-4fe7-ab6c-8d68f70c8ee8 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b2711174-b596-4fe7-ab6c-8d68f70c8ee8 262s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 262s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c', version='HTTP/1.1', remote_ip='::1') 262s Traceback (most recent call last): 262s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 262s result = await result 262s ^^^^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 262s future.result() 262s ~~~~~~~~~~~~~^^ 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 262s yield maybe_future(sm.delete_session(session_id)) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 262s yielded = self.gen.throw(exc) 262s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 262s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 262s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 262s value = future.result() 262s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 262s raise self._exception.with_traceback(self._exception_tb) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 262s result = coro.send(None) 262s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 262s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 262s raise km.ready.exception() # type: ignore[misc] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 262s await kernel_awaitable 262s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 262s result = await obj 262s ^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 262s raise e 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 262s out = await method(self, *args, **kwargs) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 262s await self._async_finish_shutdown(restart=restart) 262s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 262s await asyncio.wait_for( 262s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 262s ) 262s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 262s async with timeouts.timeout(timeout): 262s ~~~~~~~~~~~~~~~~^^^^^^^^^ 262s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 262s raise RuntimeError("Timeout should be used inside a task") 262s RuntimeError: Timeout should be used inside a task 262s WARNING NotebookApp:handlers.py:612 Unhandled error 262s ERROR NotebookApp:log.py:55 { 262s "Host": "localhost:12341", 262s "Accept": "*/*", 262s "User-Agent": "python-requests/2.32.5" 262s } 262s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaaaf3c0-ab7e-4e0e-bf3d-9cd5783b6f6c (::1) 5.060000ms referer=None 262s --------------------------- Captured stderr teardown --------------------------- 262s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 262s return _run_code(code, main_globals, None, 262s "__main__", mod_spec) 262s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 262s exec(code, run_globals) 262s ~~~~^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 262s from ipykernel import kernelapp as app 262s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 262s from .connect import * # noqa: F403 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 262s from subprocess import PIPE, Popen 262s File "/usr/lib/python3.13/subprocess.py", line 46, in 262s import locale 262s File "", line 1360, in _find_and_load 262s File "", line 1322, in _find_and_load_unlocked 262s File "", line 1262, in _find_spec 262s File "", line 984, in find_spec 262s KeyboardInterrupt 262s ---------------------------- Captured log teardown ----------------------------- 262s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0528c182-704a-4f43-981a-163d089e86be 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b2711174-b596-4fe7-ab6c-8d68f70c8ee8 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4632181c-6780-42e1-ab96-e7ea0f6622f6 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 437e4061-1925-4e0a-88b8-8dbf5d9a6e62 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ddb327a-a350-4028-bf95-8eb873d0b275 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999e54a4-d4f0-4ef6-bb71-8f6c628c75cc 262s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e83c038-f81f-446d-81b3-59a9fcc84725 262s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 262s =============================== warnings summary =============================== 262s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 262s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 262s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 262s return LooseVersion(v) >= LooseVersion(check) 262s 262s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 262s services/kernels/tests/test_kernels_api.py: 65 warnings 262s services/sessions/tests/test_sessions_api.py: 88 warnings 262s /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). 262s dt = unaware(*args, **kwargs) 262s 262s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 262s /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 262s pytestmark = pytest.mark.integration_tests 262s 262s services/kernels/tests/test_kernels_api.py: 6 warnings 262s services/sessions/tests/test_sessions_api.py: 6 warnings 262s /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 262s policy = events.get_event_loop_policy() 262s 262s services/kernels/tests/test_kernels_api.py: 24 warnings 262s services/sessions/tests/test_sessions_api.py: 19 warnings 262s /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 262s loop = events.get_event_loop_policy().get_event_loop() 262s 262s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 262s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 262s loop.make_current() 262s 262s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 262s =========================== short test summary info ============================ 262s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 262s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 262s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 262s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 262s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 262s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 262s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 262s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 262s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 262s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 262s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 262s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 262s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 262s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 262s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 262s ========= 23 failed, 307 deselected, 213 warnings, 4 errors in 12.65s ========== 262s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 262s *** 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 271s ============================= test session starts ============================== 271s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 271s rootdir: /tmp/autopkgtest.n0cVOx/autopkgtest_tmp 271s plugins: typeguard-4.4.4 271s collected 330 items / 307 deselected / 23 selected 271s run-last-failure: rerun previous 23 failures 271s 275s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 277s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 277s 277s ==================================== ERRORS ==================================== 277s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 277s 277s self = 277s 277s def tearDown(self): 277s for k in self.kern_api.list().json(): 277s > self.kern_api.shutdown(k['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 277s from typing import TYPE_CHECKING, Any 277s File "/usr/lib/python3.13/typing.py", line 2981, in 277s class SupportsRound[T](Protocol): 277s File "/usr/lib/python3.13/typing.py", line 2981, in 277s class SupportsRound[T](Protocol): 277s File "/usr/lib/python3.13/typing.py", line 1439, in __init__ 277s self.__args__ = tuple(... if a is _TypingEllipsis else 277s File "/usr/lib/python3.13/typing.py", line 1439, in 277s self.__args__ = tuple(... if a is _TypingEllipsis else 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-e9b4d030-704e-4f28-829c-8c04793cad11.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60875 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36377 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: e9b4d030-704e-4f28-829c-8c04793cad11, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.430000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-8cd450b8-3cdc-42c7-862b-792836b6fb99.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49867 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34777 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8cd450b8-3cdc-42c7-862b-792836b6fb99, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.960000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8cd450b8-3cdc-42c7-862b-792836b6fb99 277s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99/interrupt (::1) 0.570000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 277s yield maybe_future(km.restart_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 277s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 277s await ensure_async(kernel.restart_kernel(now=now)) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 277s await self._async_shutdown_kernel(now=now, restart=True) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99/restart (::1) 4.090000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9b4d030-704e-4f28-829c-8c04793cad11 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9b4d030-704e-4f28-829c-8c04793cad11 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 277s yielded = ctx_run(next, result) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 (::1) 6.980000ms referer=None 277s --------------------------- Captured stderr teardown --------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 277s from zmq import sugar 277s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 277s from zmq.sugar import context, frame, poll, socket, tracker, version 277s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 277s from .socket import Socket, SyncSocket 277s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 9, in 277s import pickle 277s File "/usr/lib/python3.13/pickle.py", line 37, in 277s import _compat_pickle 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 921, in _load_unlocked 277s File "", line 819, in module_from_spec 277s File "", line 771, in _init_module_attrs 277s KeyboardInterrupt 277s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 277s 277s self = 277s 277s def tearDown(self): 277s for k in self.kern_api.list().json(): 277s > self.kern_api.shutdown(k['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 277s from ..channels import AsyncZMQSocketChannel, HBChannel 277s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 277s from .session import Session 277s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 32, in 277s from tornado.ioloop import IOLoop 277s File "/usr/lib/python3/dist-packages/tornado/ioloop.py", line 39, in 277s from tornado.concurrent import ( 277s ...<5 lines>... 277s ) 277s File "/usr/lib/python3/dist-packages/tornado/concurrent.py", line 34, in 277s from tornado.log import app_log 277s File "/usr/lib/python3/dist-packages/tornado/log.py", line 31, in 277s import logging.handlers 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-49a7a6ab-bdaa-4471-8b91-831968a3f433.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55081 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51813 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49a7a6ab-bdaa-4471-8b91-831968a3f433, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.860000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-c5443622-b374-463b-a451-a36b51ef3fa1.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37655 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48431 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: c5443622-b374-463b-a451-a36b51ef3fa1, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 81.560000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c5443622-b374-463b-a451-a36b51ef3fa1 277s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1/interrupt (::1) 0.430000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 277s yield maybe_future(km.restart_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 277s result = coro.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 277s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 277s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 277s yield self # This tells Task to wait for completion. 277s ^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 277s await ensure_async(kernel.restart_kernel(now=now)) 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 277s await self._async_shutdown_kernel(now=now, restart=True) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1/restart (::1) 14.300000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s --------------------------- Captured stderr teardown --------------------------- 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 277s from subprocess import PIPE, Popen 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-8f376be3-381e-44b8-9c65-71af50268cd7.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56903 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55277 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f376be3-381e-44b8-9c65-71af50268cd7, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.330000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dff31359-1656-44db-b7f8-e3aef06fe63c 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dff31359-1656-44db-b7f8-e3aef06fe63c 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/76c289a4-bd02-49d6-9b28-34b72a2fc56a (::1) 1.050000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f376be3-381e-44b8-9c65-71af50268cd7 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f376be3-381e-44b8-9c65-71af50268cd7 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 14.810000ms referer=None 277s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 277s import asyncio 277s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 277s from .base_events import * 277s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 277s from . import coroutines 277s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 277s import inspect 277s File "/usr/lib/python3.13/inspect.py", line 146, in 277s import dis 277s File "/usr/lib/python3.13/dis.py", line 8, in 277s from opcode import * 277s File "/usr/lib/python3.13/opcode.py", line 15, in 277s from _opcode_metadata import (_specializations, _specialized_opmap, opmap, 277s HAVE_ARGUMENT, MIN_INSTRUMENTED_OPCODE) 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1124, in get_code 277s File "", line 694, in _classify_pyc 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-5460d9bb-4321-4752-ac0c-3b331bdd1c48.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42511 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33313 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5460d9bb-4321-4752-ac0c-3b331bdd1c48, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.830000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.290000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc9bd2f5-2014-41da-ad45-78116ec639b2 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc9bd2f5-2014-41da-ad45-78116ec639b2 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619 (::1) 0.800000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5460d9bb-4321-4752-ac0c-3b331bdd1c48 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5460d9bb-4321-4752-ac0c-3b331bdd1c48 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 11.340000ms referer=None 277s =================================== FAILURES =================================== 277s ______________________ KernelAPITest.test_default_kernel _______________________ 277s 277s self = 277s 277s def tearDown(self): 277s for k in self.kern_api.list().json(): 277s > self.kern_api.shutdown(k['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log setup ------------------------------ 277s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpauo786tp/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpauo786tp/etc/jupyter'] for config files 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpauo786tp/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpauo786tp/config 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpauo786tp/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpauo786tp/config 277s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpauo786tp/notebooks 277s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 277s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 277s WARNING NotebookApp:handlers.py:612 Forbidden 277s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.610000ms referer=None 277s ----------------------------- Captured stderr call ----------------------------- 277s Fatal Python error: init_import_site: Failed to import the site module 277s Python runtime state: initialized 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41253 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57647 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 42.920000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 277s yielded = ctx_run(next, result) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b (::1) 11.490000ms referer=None 277s --------------------------- Captured stderr teardown --------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/site.py", line 81, in 277s import _sitebuiltins 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1109, in get_code 277s File "", line 1230, in path_stats 277s KeyboardInterrupt 277s ______________________ KernelAPITest.test_kernel_handler _______________________ 277s 277s self = 277s 277s def test_kernel_handler(self): 277s # GET kernel with given id 277s kid = self.kern_api.start().json()['id'] 277s r = self.kern_api.get(kid) 277s kern1 = r.json() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(kern1, dict) 277s self.assertIn('id', kern1) 277s self.assertEqual(kern1['id'], kid) 277s 277s # Request a bad kernel id and check that a JSON 277s # message is returned! 277s bad_id = '111-111-111-111-111' 277s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 277s self.kern_api.get(bad_id) 277s 277s # DELETE kernel with id 277s > r = self.kern_api.shutdown(kid) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 277s from pathlib import Path 277s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 277s from ._abc import * 277s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 277s from glob import _Globber, _no_recurse_symlinks 277s File "/usr/lib/python3.13/glob.py", line 5, in 277s import re 277s File "/usr/lib/python3.13/re/__init__.py", line 126, in 277s from . import _compiler, _parser 277s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 277s from . import _parser 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1125, in get_code 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-8b7ea9e5-ef99-40a0-a101-4e7cfb97095f.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34293 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44327 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b7ea9e5-ef99-40a0-a101-4e7cfb97095f, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.520000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f (::1) 0.830000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s 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 277s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 277s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.490000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b7ea9e5-ef99-40a0-a101-4e7cfb97095f 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b7ea9e5-ef99-40a0-a101-4e7cfb97095f 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 277s yielded = ctx_run(next, result) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f (::1) 5.190000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.870000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d3751bf5-2ac2-488b-9c7d-0f4b4cb6333b (::1) 1.050000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b7ea9e5-ef99-40a0-a101-4e7cfb97095f 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b7ea9e5-ef99-40a0-a101-4e7cfb97095f 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8b7ea9e5-ef99-40a0-a101-4e7cfb97095f (::1) 0.510000ms 277s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 277s 277s self = 277s 277s def test_main_kernel_handler(self): 277s # POST request 277s r = self.kern_api.start() 277s kern1 = r.json() 277s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 277s self.assertEqual(r.status_code, 201) 277s self.assertIsInstance(kern1, dict) 277s 277s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 277s expected_csp = '; '.join([ 277s "frame-ancestors 'self'", 277s 'report-uri ' + report_uri, 277s "default-src 'none'" 277s ]) 277s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 277s 277s # GET request 277s r = self.kern_api.list() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(r.json(), list) 277s self.assertEqual(r.json()[0]['id'], kern1['id']) 277s self.assertEqual(r.json()[0]['name'], kern1['name']) 277s 277s # create another kernel and check that they both are added to the 277s # list of kernels from a GET request 277s kern2 = self.kern_api.start().json() 277s assert isinstance(kern2, dict) 277s r = self.kern_api.list() 277s kernels = r.json() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(kernels, list) 277s self.assertEqual(len(kernels), 2) 277s 277s # Interrupt a kernel 277s r = self.kern_api.interrupt(kern2['id']) 277s self.assertEqual(r.status_code, 204) 277s 277s # Restart a kernel 277s > r = self.kern_api.restart(kern2['id']) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 277s return self._req('POST', url_path_join(id, 'restart')) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99/restart 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 277s from typing import TYPE_CHECKING, Any 277s File "/usr/lib/python3.13/typing.py", line 2981, in 277s class SupportsRound[T](Protocol): 277s File "/usr/lib/python3.13/typing.py", line 2981, in 277s class SupportsRound[T](Protocol): 277s File "/usr/lib/python3.13/typing.py", line 1439, in __init__ 277s self.__args__ = tuple(... if a is _TypingEllipsis else 277s File "/usr/lib/python3.13/typing.py", line 1439, in 277s self.__args__ = tuple(... if a is _TypingEllipsis else 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-e9b4d030-704e-4f28-829c-8c04793cad11.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60875 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36377 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: e9b4d030-704e-4f28-829c-8c04793cad11, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.430000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpauo786tp/runtime/kernel-8cd450b8-3cdc-42c7-862b-792836b6fb99.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49867 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34777 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8cd450b8-3cdc-42c7-862b-792836b6fb99, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.960000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8cd450b8-3cdc-42c7-862b-792836b6fb99 277s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99/interrupt (::1) 0.570000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 277s yield maybe_future(km.restart_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 277s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 277s await ensure_async(kernel.restart_kernel(now=now)) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 277s await self._async_shutdown_kernel(now=now, restart=True) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99/restart (::1) 4.090000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9b4d030-704e-4f28-829c-8c04793cad11 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9b4d030-704e-4f28-829c-8c04793cad11 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 277s yielded = ctx_run(next, result) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 (::1) 6.980000ms referer=None 277s ________________________ KernelAPITest.test_no_kernels _________________________ 277s 277s self = 277s 277s def test_no_kernels(self): 277s """Make sure there are no kernels running at the start""" 277s kernels = self.kern_api.list().json() 277s > self.assertEqual(kernels, []) 277s E AssertionError: Lists differ: [{'id': 'e9b4d030-704e-4f28-829c-8c04793ca[281 chars]: 0}] != [] 277s E 277s E First list contains 2 additional elements. 277s E First extra element 0: 277s E {'id': 'e9b4d030-704e-4f28-829c-8c04793cad11', 'name': 'python3', 'last_activity': '2026-01-30T06:07:08.753673Z', 'execution_state': 'starting', 'connections': 0} 277s E 277s E + [] 277s E - [{'connections': 0, 277s E - 'execution_state': 'starting', 277s E - 'id': 'e9b4d030-704e-4f28-829c-8c04793cad11', 277s E - 'last_activity': '2026-01-30T06:07:08.753673Z', 277s E - 'name': 'python3'}, 277s E - {'connections': 0, 277s E - 'execution_state': 'starting', 277s E - 'id': '8cd450b8-3cdc-42c7-862b-792836b6fb99', 277s E - 'last_activity': '2026-01-30T06:07:08.779378Z', 277s E - 'name': 'python3'}] 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.240000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e9b4d030-704e-4f28-829c-8c04793cad11 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e9b4d030-704e-4f28-829c-8c04793cad11 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e9b4d030-704e-4f28-829c-8c04793cad11 (::1) 2.230000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8cd450b8-3cdc-42c7-862b-792836b6fb99 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8cd450b8-3cdc-42c7-862b-792836b6fb99 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8cd450b8-3cdc-42c7-862b-792836b6fb99 (::1) 5.220000ms 277s ---------------------------- Captured log teardown ----------------------------- 277s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 277s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 277s _____________________ AsyncKernelAPITest.test_connections ______________________ 277s 277s self = 277s 277s def tearDown(self): 277s for k in self.kern_api.list().json(): 277s > self.kern_api.shutdown(k['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log setup ------------------------------ 277s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgb47_a4q/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgb47_a4q/etc/jupyter'] for config files 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgb47_a4q/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgb47_a4q/config 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgb47_a4q/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgb47_a4q/config 277s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgb47_a4q/notebooks 277s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 277s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 277s WARNING NotebookApp:handlers.py:612 Forbidden 277s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 3.380000ms referer=None 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-a2bdc046-7344-4936-93dd-99953973faf4.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35993 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32825 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: a2bdc046-7344-4936-93dd-99953973faf4, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 490.490000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 0.490000ms 277s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4/channels 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 277s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from a2bdc046-7344-4936-93dd-99953973faf4 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56347 277s DEBUG NotebookApp:kernelmanager.py:423 activity on a2bdc046-7344-4936-93dd-99953973faf4: status (starting) 277s DEBUG NotebookApp:kernelmanager.py:423 activity on a2bdc046-7344-4936-93dd-99953973faf4: status (busy) 277s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 277s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel a2bdc046-7344-4936-93dd-99953973faf4) to 5.4 (client). 277s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4/channels (::1) 1150.890000ms 277s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4/channels 277s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for a2bdc046-7344-4936-93dd-99953973faf4 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32825 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56347 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35993 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37735 277s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel a2bdc046-7344-4936-93dd-99953973faf4 277s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 277s Setting websocket_ping_timeout=30000 277s DEBUG NotebookApp:kernelmanager.py:423 activity on a2bdc046-7344-4936-93dd-99953973faf4: status (idle) 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 1.080000ms 277s DEBUG NotebookApp:handlers.py:579 Websocket closed a2bdc046-7344-4936-93dd-99953973faf4:8128dd26-5d5adb126d7e3bc9a479b734 277s INFO NotebookApp:kernelmanager.py:222 Starting buffering for a2bdc046-7344-4936-93dd-99953973faf4:8128dd26-5d5adb126d7e3bc9a479b734 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a2bdc046-7344-4936-93dd-99953973faf4 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 0.820000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 0.460000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.100000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a2bdc046-7344-4936-93dd-99953973faf4 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a2bdc046-7344-4936-93dd-99953973faf4 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 277s 277s self = 277s 277s def tearDown(self): 277s for k in self.kern_api.list().json(): 277s > self.kern_api.shutdown(k['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/700e5e5d-6d4c-421a-ba40-3443fffa1130 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 277s from zmq import backend 277s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 277s _ns = select_backend(first) 277s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 277s mod = import_module(name) 277s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 277s return _bootstrap._gcd_import(name[level:], package, level) 277s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 277s from . import _zmq 277s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 277s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 332, in 277s class SecurityMechanism(IntEnum): 277s ...<8 lines>... 277s GSSAPI = 3 277s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 277s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 277s File "/usr/lib/python3.13/enum.py", line 284, in __set_name__ 277s enum_member.__init__(*args) 277s ~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3.13/enum.py", line 1217, in __init__ 277s def __init__(self, *args, **kwds): 277s 277s KeyboardInterrupt 277s Error calling __set_name__ on '_proto_member' instance 'NULL' in 'SecurityMechanism' 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-700e5e5d-6d4c-421a-ba40-3443fffa1130.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57167 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45063 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 700e5e5d-6d4c-421a-ba40-3443fffa1130, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.360000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a2bdc046-7344-4936-93dd-99953973faf4 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a2bdc046-7344-4936-93dd-99953973faf4 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a2bdc046-7344-4936-93dd-99953973faf4 (::1) 0.600000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 700e5e5d-6d4c-421a-ba40-3443fffa1130 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 700e5e5d-6d4c-421a-ba40-3443fffa1130 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/700e5e5d-6d4c-421a-ba40-3443fffa1130 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/700e5e5d-6d4c-421a-ba40-3443fffa1130', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/700e5e5d-6d4c-421a-ba40-3443fffa1130 (::1) 19.850000ms referer=None 277s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 277s 277s self = 277s 277s def test_kernel_handler(self): 277s # GET kernel with given id 277s kid = self.kern_api.start().json()['id'] 277s r = self.kern_api.get(kid) 277s kern1 = r.json() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(kern1, dict) 277s self.assertIn('id', kern1) 277s self.assertEqual(kern1['id'], kid) 277s 277s # Request a bad kernel id and check that a JSON 277s # message is returned! 277s bad_id = '111-111-111-111-111' 277s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 277s self.kern_api.get(bad_id) 277s 277s # DELETE kernel with id 277s > r = self.kern_api.shutdown(kid) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 277s from zmq import backend 277s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 7, in 277s import platform 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-cc99735b-8023-4aad-9479-f68c0e7fa4e0.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54453 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48663 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc99735b-8023-4aad-9479-f68c0e7fa4e0, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.180000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0 (::1) 0.390000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s 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 277s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 277s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.480000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0 (::1) 5.790000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 12.080000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 700e5e5d-6d4c-421a-ba40-3443fffa1130 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 700e5e5d-6d4c-421a-ba40-3443fffa1130 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/700e5e5d-6d4c-421a-ba40-3443fffa1130 (::1) 0.490000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cc99735b-8023-4aad-9479-f68c0e7fa4e0 (::1) 0.410000ms 277s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 277s 277s self = 277s 277s def test_main_kernel_handler(self): 277s # POST request 277s r = self.kern_api.start() 277s kern1 = r.json() 277s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 277s self.assertEqual(r.status_code, 201) 277s self.assertIsInstance(kern1, dict) 277s 277s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 277s expected_csp = '; '.join([ 277s "frame-ancestors 'self'", 277s 'report-uri ' + report_uri, 277s "default-src 'none'" 277s ]) 277s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 277s 277s # GET request 277s r = self.kern_api.list() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(r.json(), list) 277s self.assertEqual(r.json()[0]['id'], kern1['id']) 277s self.assertEqual(r.json()[0]['name'], kern1['name']) 277s 277s # create another kernel and check that they both are added to the 277s # list of kernels from a GET request 277s kern2 = self.kern_api.start().json() 277s assert isinstance(kern2, dict) 277s r = self.kern_api.list() 277s kernels = r.json() 277s self.assertEqual(r.status_code, 200) 277s assert isinstance(kernels, list) 277s self.assertEqual(len(kernels), 2) 277s 277s # Interrupt a kernel 277s r = self.kern_api.interrupt(kern2['id']) 277s self.assertEqual(r.status_code, 204) 277s 277s # Restart a kernel 277s > r = self.kern_api.restart(kern2['id']) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 277s return self._req('POST', url_path_join(id, 'restart')) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1/restart 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 277s from ..channels import AsyncZMQSocketChannel, HBChannel 277s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 277s from .session import Session 277s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 32, in 277s from tornado.ioloop import IOLoop 277s File "/usr/lib/python3/dist-packages/tornado/ioloop.py", line 39, in 277s from tornado.concurrent import ( 277s ...<5 lines>... 277s ) 277s File "/usr/lib/python3/dist-packages/tornado/concurrent.py", line 34, in 277s from tornado.log import app_log 277s File "/usr/lib/python3/dist-packages/tornado/log.py", line 31, in 277s import logging.handlers 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-49a7a6ab-bdaa-4471-8b91-831968a3f433.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55081 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51813 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49a7a6ab-bdaa-4471-8b91-831968a3f433, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.860000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgb47_a4q/runtime/kernel-c5443622-b374-463b-a451-a36b51ef3fa1.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37655 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48431 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: c5443622-b374-463b-a451-a36b51ef3fa1, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 81.560000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c5443622-b374-463b-a451-a36b51ef3fa1 277s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1/interrupt (::1) 0.430000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 277s yield maybe_future(km.restart_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 277s result = coro.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 277s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 277s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 277s yield self # This tells Task to wait for completion. 277s ^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 277s await ensure_async(kernel.restart_kernel(now=now)) 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 277s await self._async_shutdown_kernel(now=now, restart=True) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1/restart (::1) 14.300000ms referer=None 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 277s yield maybe_future(km.shutdown_kernel(kernel_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 277s 277s self = 277s 277s def test_no_kernels(self): 277s """Make sure there are no kernels running at the start""" 277s kernels = self.kern_api.list().json() 277s > self.assertEqual(kernels, []) 277s E AssertionError: Lists differ: [{'id': '49a7a6ab-bdaa-4471-8b91-831968a3f[281 chars]: 0}] != [] 277s E 277s E First list contains 2 additional elements. 277s E First extra element 0: 277s E {'id': '49a7a6ab-bdaa-4471-8b91-831968a3f433', 'name': 'python3', 'last_activity': '2026-01-30T06:07:11.159691Z', 'execution_state': 'starting', 'connections': 0} 277s E 277s E + [] 277s E - [{'connections': 0, 277s E - 'execution_state': 'starting', 277s E - 'id': '49a7a6ab-bdaa-4471-8b91-831968a3f433', 277s E - 'last_activity': '2026-01-30T06:07:11.159691Z', 277s E - 'name': 'python3'}, 277s E - {'connections': 0, 277s E - 'execution_state': 'starting', 277s E - 'id': 'c5443622-b374-463b-a451-a36b51ef3fa1', 277s E - 'last_activity': '2026-01-30T06:07:11.249670Z', 277s E - 'name': 'python3'}] 277s 277s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.330000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49a7a6ab-bdaa-4471-8b91-831968a3f433 (::1) 0.460000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c5443622-b374-463b-a451-a36b51ef3fa1 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c5443622-b374-463b-a451-a36b51ef3fa1 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c5443622-b374-463b-a451-a36b51ef3fa1 (::1) 0.550000ms 277s ---------------------------- Captured log teardown ----------------------------- 277s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a7a6ab-bdaa-4471-8b91-831968a3f433 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 700e5e5d-6d4c-421a-ba40-3443fffa1130 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a2bdc046-7344-4936-93dd-99953973faf4 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc99735b-8023-4aad-9479-f68c0e7fa4e0 277s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 277s __________________________ SessionAPITest.test_create __________________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log setup ------------------------------ 277s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpps5l0ooa/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpps5l0ooa/etc/jupyter'] for config files 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpps5l0ooa/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpps5l0ooa/config 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpps5l0ooa/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpps5l0ooa/config 277s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpps5l0ooa/notebooks 277s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 277s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 277s WARNING NotebookApp:handlers.py:612 Forbidden 277s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.790000ms referer=None 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.290000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-db089efd-98cb-4f68-9708-7d3bfc7aea95.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49213 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58941 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: db089efd-98cb-4f68-9708-7d3bfc7aea95, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpps5l0ooa/notebooks/foo'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.210000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264 (::1) 0.550000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db089efd-98cb-4f68-9708-7d3bfc7aea95 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db089efd-98cb-4f68-9708-7d3bfc7aea95 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264 (::1) 6.130000ms referer=None 277s --------------------------- Captured stderr teardown --------------------------- 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1140, in get_code 277s File "", line 751, in _validate_timestamp_pyc 277s File "", line 92, in _unpack_uint32 277s KeyboardInterrupt 277s __________________ SessionAPITest.test_create_console_session __________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/37d98fa5-8063-4fc6-a665-a37bdcc13794 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-32c97885-00a2-44a4-9609-46d5e32aab53.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50067 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49119 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 32c97885-00a2-44a4-9609-46d5e32aab53, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpps5l0ooa/notebooks/foo'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 25.660000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.110000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for db089efd-98cb-4f68-9708-7d3bfc7aea95 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: db089efd-98cb-4f68-9708-7d3bfc7aea95 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/55fb7b9b-05f3-4729-b60e-69abed51e264 (::1) 0.740000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32c97885-00a2-44a4-9609-46d5e32aab53 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32c97885-00a2-44a4-9609-46d5e32aab53 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/37d98fa5-8063-4fc6-a665-a37bdcc13794 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/37d98fa5-8063-4fc6-a665-a37bdcc13794', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/37d98fa5-8063-4fc6-a665-a37bdcc13794 (::1) 5.560000ms referer=None 277s --------------------------- Captured stderr teardown --------------------------- 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 277s from zmq import backend 277s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 277s _ns = select_backend(first) 277s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 277s mod = import_module(name) 277s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 277s return _bootstrap._gcd_import(name[level:], package, level) 277s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 277s from . import _zmq 277s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 277s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 359, in 277s class Event(IntFlag): 277s ...<59 lines>... 277s ALL_V2 = ALL_V1 | PIPES_STATS 277s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 277s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 277s File "/usr/lib/python3.13/enum.py", line 268, in __set_name__ 277s enum_member = enum_class._new_member_(enum_class, *args) 277s KeyboardInterrupt 277s Error calling __set_name__ on '_proto_member' instance 'LISTENING' in 'Event' 277s ____________________ SessionAPITest.test_create_deprecated _____________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1259a082-9dc5-4f38-a611-53ac0b083772 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-a2c16345-77ce-4a55-86d4-3656b22f60d4.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44617 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44191 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: a2c16345-77ce-4a55-86d4-3656b22f60d4, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpps5l0ooa/notebooks/foo'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.610000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 19.890000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 32c97885-00a2-44a4-9609-46d5e32aab53 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 32c97885-00a2-44a4-9609-46d5e32aab53 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/37d98fa5-8063-4fc6-a665-a37bdcc13794 (::1) 15.970000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a2c16345-77ce-4a55-86d4-3656b22f60d4 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a2c16345-77ce-4a55-86d4-3656b22f60d4 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1259a082-9dc5-4f38-a611-53ac0b083772 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1259a082-9dc5-4f38-a611-53ac0b083772', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1259a082-9dc5-4f38-a611-53ac0b083772 (::1) 6.510000ms referer=None 277s --------------------------- Captured stderr teardown --------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 277s import jupyter_client 277s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 277s from .asynchronous import AsyncKernelClient 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 277s from .client import AsyncKernelClient # noqa 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 277s import zmq.asyncio 277s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 277s import asyncio 277s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 277s from .base_events import * 277s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 277s import concurrent.futures 277s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 277s from concurrent.futures._base import (FIRST_COMPLETED, 277s ...<9 lines>... 277s as_completed) 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 783, in _compile_bytecode 277s File "", line 491, in _verbose_message 277s KeyboardInterrupt 277s ___________________ SessionAPITest.test_create_file_session ____________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/76c289a4-bd02-49d6-9b28-34b72a2fc56a 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-dff31359-1656-44db-b7f8-e3aef06fe63c.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57983 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44565 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: dff31359-1656-44db-b7f8-e3aef06fe63c, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpps5l0ooa/notebooks/foo'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.450000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.470000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a2c16345-77ce-4a55-86d4-3656b22f60d4 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a2c16345-77ce-4a55-86d4-3656b22f60d4 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1259a082-9dc5-4f38-a611-53ac0b083772 (::1) 141.950000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dff31359-1656-44db-b7f8-e3aef06fe63c 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dff31359-1656-44db-b7f8-e3aef06fe63c 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/76c289a4-bd02-49d6-9b28-34b72a2fc56a (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/76c289a4-bd02-49d6-9b28-34b72a2fc56a', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise Runtim/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 277s gc.collect() 277s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 277s eError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 277s 277s self = 277s 277s def test_create_with_kernel_id(self): 277s # create a new kernel 277s r = self.request('POST', 'api/kernels') 277s r.raise_for_status() 277s kernel = r.json() 277s 277s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 277s self.assertEqual(resp.status_code, 201) 277s newsession = resp.json() 277s self.assertIn('id', newsession) 277s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 277s self.assertEqual(newsession['kernel']['id'], kernel['id']) 277s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 277s 277s sessions = self.sess_api.list().json() 277s > self.assertEqual(sessions, [newsession]) 277s E AssertionError: Lists differ: [{'id': '76c289a4-bd02-49d6-9b28-34b72a2fc56a', 'pa[552 chars]ne}}] != [{'id': '7b50179b-28e9-44a6-a302-feed23b9c041', 'pa[278 chars]ne}}] 277s E 277s E First differing element 0: 277s E {'id': '76c289a4-bd02-49d6-9b28-34b72a2fc56a', 'pa[217 chars]: 0}} 277s E {'id': '7b50179b-28e9-44a6-a302-feed23b9c041', 'pa[277 chars]one}} 277s E 277s E First list contains 1 additional elements. 277s E First extra element 1: 277s E {'id': '7b50179b-28e9-44a6-a302-feed23b9c041', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8f376be3-381e-44b8-9c65-71af50268cd7', 'name': 'python3', 'last_activity': '2026-01-30T06:07:12.069444Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 277s E 277s E Diff is 830 characters long. Set self.maxDiff to None to see it. 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 277s from subprocess import PIPE, Popen 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-8f376be3-381e-44b8-9c65-71af50268cd7.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56903 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55277 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f376be3-381e-44b8-9c65-71af50268cd7, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.330000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dff31359-1656-44db-b7f8-e3aef06fe63c 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dff31359-1656-44db-b7f8-e3aef06fe63c 277s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/76c289a4-bd02-49d6-9b28-34b72a2fc56a (::1) 1.050000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f376be3-381e-44b8-9c65-71af50268cd7 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f376be3-381e-44b8-9c65-71af50268cd7 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 277s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 14.810000ms referer=None 277s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s Traceback (most recent call last): 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-27a72817-7190-4c69-bf7e-bc039132f990.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41949 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50577 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27a72817-7190-4c69-bf7e-bc039132f990, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 57.550000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f376be3-381e-44b8-9c65-71af50268cd7 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f376be3-381e-44b8-9c65-71af50268cd7 277s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 2.380000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.800000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27a72817-7190-4c69-bf7e-bc039132f990 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a72817-7190-4c69-bf7e-bc039132f990 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s --------------------------- Captured stderr teardown --------------------------- 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 277s from pathlib import Path 277s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 277s from ._abc import * 277s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 277s import functools 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s File "", line 781, in _compile_bytecode 277s KeyboardInterrupt 277s Traceback (most recent call last): 277s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 277s from typing import TYPE_CHECKING, Any 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1115, in get_code 277s File "", line 1215, in get_data 277s KeyboardInterrupt 277s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ----------------------------- Captured stderr call ----------------------------- 277s 98, in _run_module_as_main 277s return _run_code(code, main_globals, None, 277s "__main__", mod_spec) 277s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 277s exec(code, run_globals) 277s ~~~~^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 277s from ipykernel import kernelapp as app 277s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 277s from .connect import * # noqa: F403 277s ^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 277s from subprocess import PIPE, Popen 277s File "/usr/lib/python3.13/subprocess.py", line 46, in 277s import locale 277s File "", line 1360, in _find_and_load 277s File "", line 1331, in _find_and_load_unlocked 277s File "", line 935, in _load_unlocked 277s File "", line 1019, in exec_module 277s File "", line 1152, in get_code 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.670000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpps5l0ooa/runtime/kernel-a42ac3a7-7479-4af9-8497-7ac5e3beee96.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52113 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44377 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: a42ac3a7-7479-4af9-8497-7ac5e3beee96, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpps5l0ooa/notebooks/foo'} 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27a72817-7190-4c69-bf7e-bc039132f990 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a72817-7190-4c69-bf7e-bc039132f990 277s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 28.160000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.620000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a42ac3a7-7479-4af9-8497-7ac5e3beee96 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a42ac3a7-7479-4af9-8497-7ac5e3beee96 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041 (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b50179b-28e9-44a6-a302-feed23b9c041', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 277s yielded = self.gen.send(value) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 277s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 277s stopper = ensure_async(km.shutdown_kernel(now, restart)) 277s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 277s return _runner_map[name].run(inner) 277s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 277s return fut.result(None) 277s ~~~~~~~~~~^^^^^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 277s return self.__get_result() 277s ~~~~~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 277s raise self._exception 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s --------------------------- Captured stderr teardown --------------------------- 277s KeyboardInterrupt 277s ---------------------------- Captured log teardown ----------------------------- 277s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a42ac3a7-7479-4af9-8497-7ac5e3beee96 277s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 277s _______________________ AsyncSessionAPITest.test_create ________________________ 277s 277s @self.addCleanup 277s def cleanup_sessions(): 277s for session in self.sess_api.list().json(): 277s > self.sess_api.delete(session['id']) 277s 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 277s return self._req('DELETE', id) 277s ^^^^^^^^^^^^^^^^^^^^^^^ 277s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 277s response.raise_for_status() 277s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 277s 277s self = 277s 277s def raise_for_status(self): 277s """Raises :class:`HTTPError`, if one occurred.""" 277s 277s http_error_msg = "" 277s if isinstance(self.reason, bytes): 277s # We attempt to decode utf-8 first because some servers 277s # choose to localize their reason strings. If the string 277s # isn't utf-8, we fall back to iso-8859-1 for all other 277s # encodings. (See PR #3538) 277s try: 277s reason = self.reason.decode("utf-8") 277s except UnicodeDecodeError: 277s reason = self.reason.decode("iso-8859-1") 277s else: 277s reason = self.reason 277s 277s if 400 <= self.status_code < 500: 277s http_error_msg = ( 277s f"{self.status_code} Client Error: {reason} for url: {self.url}" 277s ) 277s 277s elif 500 <= self.status_code < 600: 277s http_error_msg = ( 277s f"{self.status_code} Server Error: {reason} for url: {self.url}" 277s ) 277s 277s if http_error_msg: 277s > raise HTTPError(http_error_msg, response=self) 277s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f 277s 277s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 277s ------------------------------ Captured log setup ------------------------------ 277s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1tg8001w/config', '/tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1tg8001w/etc/jupyter'] for config files 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1tg8001w/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1tg8001w/config 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1tg8001w/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.n0cVOx/autopkgtest_tmp/home/.local/etc/jupyter 277s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1tg8001w/config 277s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1tg8001w/notebooks 277s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 277s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 277s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 277s WARNING NotebookApp:handlers.py:612 Forbidden 277s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.810000ms referer=None 277s ------------------------------ Captured log call ------------------------------- 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 277s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-76a631c5-928c-4d4b-977e-739b338152e1.json'] 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46053 277s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33579 277s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76a631c5-928c-4d4b-977e-739b338152e1, name: python3 277s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1tg8001w/notebooks/foo'} 277s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.850000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f (::1) 1.940000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.050000ms 277s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 277s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76a631c5-928c-4d4b-977e-739b338152e1 277s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76a631c5-928c-4d4b-977e-739b338152e1 277s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f (::1) 277s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f', version='HTTP/1.1', remote_ip='::1') 277s Traceback (most recent call last): 277s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 277s result = await result 277s ^^^^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 277s future.result() 277s ~~~~~~~~~~~~~^^ 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 277s yield maybe_future(sm.delete_session(session_id)) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 277s yielded = self.gen.throw(exc) 277s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 277s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 277s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 277s value = future.result() 277s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 277s raise self._exception.with_traceback(self._exception_tb) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 277s result = coro.send(None) 277s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 277s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 277s raise km.ready.exception() # type: ignore[misc] 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 277s await kernel_awaitable 277s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 277s result = await obj 277s ^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 277s raise e 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 277s out = await method(self, *args, **kwargs) 277s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 277s await self._async_finish_shutdown(restart=restart) 277s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 277s await asyncio.wait_for( 277s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 277s ) 277s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 277s async with timeouts.timeout(timeout): 277s ~~~~~~~~~~~~~~~~^^^^^^^^^ 277s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 277s raise RuntimeError("Timeout should be used inside a task") 277s RuntimeError: Timeout should be used inside a task 277s WARNING NotebookApp:handlers.py:612 Unhandled error 277s ERROR NotebookApp:log.py:55 { 277s "Host": "localhost:12341", 277s "Accept": "*/*", 277s "User-Agent": "python-requests/2.32.5" 277s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f (::1) 6.110000ms referer=None 278s --------------------------- Captured stderr teardown --------------------------- 278s Traceback (most recent call last): 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 278s from ipykernel import kernelapp as app 278s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 278s from .connect import * # noqa: F403 278s ^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 278s import jupyter_client 278s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 278s from .asynchronous import AsyncKernelClient 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 278s from .client import AsyncKernelClient # noqa 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 278s import zmq.asyncio 278s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 278s import asyncio 278s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 278s from .base_events import * 278s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 278s import ssl 278s File "/usr/lib/python3.13/ssl.py", line 100, in 278s import _ssl # if we can't import it, let the error propagate 278s ^^^^^^^^^^^ 278s File "", line 1360, in _find_and_load 278s File "", line 1331, in _find_and_load_unlocked 278s File "", line 935, in _load_unlocked 278s File "", line 1326, in exec_module 278s File "", line 491, in _verbose_message 278s KeyboardInterrupt 278s _______________ AsyncSessionAPITest.test_create_console_session ________________ 278s 278s @self.addCleanup 278s def cleanup_sessions(): 278s for session in self.sess_api.list().json(): 278s > self.sess_api.delete(session['id']) 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 278s return self._req('DELETE', id) 278s ^^^^^^^^^^^^^^^^^^^^^^^ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 278s response.raise_for_status() 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s 278s self = 278s 278s def raise_for_status(self): 278s """Raises :class:`HTTPError`, if one occurred.""" 278s 278s http_error_msg = "" 278s if isinstance(self.reason, bytes): 278s # We attempt to decode utf-8 first because some servers 278s # choose to localize their reason strings. If the string 278s # isn't utf-8, we fall back to iso-8859-1 for all other 278s # encodings. (See PR #3538) 278s try: 278s reason = self.reason.decode("utf-8") 278s except UnicodeDecodeError: 278s reason = self.reason.decode("iso-8859-1") 278s else: 278s reason = self.reason 278s 278s if 400 <= self.status_code < 500: 278s http_error_msg = ( 278s f"{self.status_code} Client Error: {reason} for url: {self.url}" 278s ) 278s 278s elif 500 <= self.status_code < 600: 278s http_error_msg = ( 278s f"{self.status_code} Server Error: {reason} for url: {self.url}" 278s ) 278s 278s if http_error_msg: 278s > raise HTTPError(http_error_msg, response=self) 278s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f64690be-1da9-4a82-92aa-27b19c354d3b 278s 278s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-a8d0fc2f-9a96-4814-8467-3a698aa4962e.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52191 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53345 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: a8d0fc2f-9a96-4814-8467-3a698aa4962e, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1tg8001w/notebooks/foo'} 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.010000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76a631c5-928c-4d4b-977e-739b338152e1 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76a631c5-928c-4d4b-977e-739b338152e1 278s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5e3e80a8-370f-464d-8367-6931d147eb0f (::1) 0.580000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8d0fc2f-9a96-4814-8467-3a698aa4962e 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8d0fc2f-9a96-4814-8467-3a698aa4962e 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f64690be-1da9-4a82-92aa-27b19c354d3b (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f64690be-1da9-4a82-92aa-27b19c354d3b', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/f64690be-1da9-4a82-92aa-27b19c354d3b (::1) 5.080000ms referer=None 278s --------------------------- Captured stderr teardown --------------------------- 278s Traceback (most recent call last): 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 278s from pathlib import Path 278s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 278s from ._abc import * 278s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 278s import functools 278s File "/usr/lib/python3.13/functools.py", line 455, in 278s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 278s File "/usr/lib/python3.13/collections/__init__.py", line 512, in namedtuple 278s result = type(typename, (tuple,), class_namespace) 278s KeyboardInterrupt 278s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 278s 278s @self.addCleanup 278s def cleanup_sessions(): 278s for session in self.sess_api.list().json(): 278s > self.sess_api.delete(session['id']) 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 278s return self._req('DELETE', id) 278s ^^^^^^^^^^^^^^^^^^^^^^^ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 278s response.raise_for_status() 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s 278s self = 278s 278s def raise_for_status(self): 278s """Raises :class:`HTTPError`, if one occurred.""" 278s 278s http_error_msg = "" 278s if isinstance(self.reason, bytes): 278s # We attempt to decode utf-8 first because some servers 278s # choose to localize their reason strings. If the string 278s # isn't utf-8, we fall back to iso-8859-1 for all other 278s # encodings. (See PR #3538) 278s try: 278s reason = self.reason.decode("utf-8") 278s except UnicodeDecodeError: 278s reason = self.reason.decode("iso-8859-1") 278s else: 278s reason = self.reason 278s 278s if 400 <= self.status_code < 500: 278s http_error_msg = ( 278s f"{self.status_code} Client Error: {reason} for url: {self.url}" 278s ) 278s 278s elif 500 <= self.status_code < 600: 278s http_error_msg = ( 278s f"{self.status_code} Server Error: {reason} for url: {self.url}" 278s ) 278s 278s if http_error_msg: 278s > raise HTTPError(http_error_msg, response=self) 278s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cf284c79-2cb4-435e-9f58-03e683d1835d 278s 278s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 278s ----------------------------- Captured stderr call ----------------------------- 278s Traceback (most recent call last): 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-8743f2f9-7f26-4a45-859f-38e916be2045.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57323 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44909 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8743f2f9-7f26-4a45-859f-38e916be2045, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1tg8001w/notebooks/foo'} 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.090000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.570000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8d0fc2f-9a96-4814-8467-3a698aa4962e 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8d0fc2f-9a96-4814-8467-3a698aa4962e 278s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f64690be-1da9-4a82-92aa-27b19c354d3b (::1) 0.840000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8743f2f9-7f26-4a45-859f-38e916be2045 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8743f2f9-7f26-4a45-859f-38e916be2045 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cf284c79-2cb4-435e-9f58-03e683d1835d (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cf284c79-2cb4-435e-9f58-03e683d1835d', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cf284c79-2cb4-435e-9f58-03e683d1835d (::1) 7.810000ms referer=None 278s --------------------------- Captured stderr teardown --------------------------- 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 278s from ipykernel import kernelapp as app 278s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 278s from .connect import * # noqa: F403 278s ^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 278s import jupyter_client 278s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 278s from .asynchronous import AsyncKernelClient 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 278s from .client import AsyncKernelClient # noqa 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 278s import zmq.asyncio 278s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 278s from zmq import backend 278s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 278s _ns = select_backend(first) 278s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 278s mod = import_module(name) 278s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 278s return _bootstrap._gcd_import(name[level:], package, level) 278s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 278s from . import _zmq 278s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 278s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 288, in 278s class Flag(IntFlag): 278s ...<7 lines>... 278s NOBLOCK = DONTWAIT 278s File "/usr/lib/python3.13/enum.py", line 570, in __new__ 278s delattr(enum_class, '_%s__in_progress' % cls) 278s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3.13/enum.py", line 769, in __delattr__ 278s super().__delattr__(attr) 278s ~~~~~~~~~~~~~~~~~~~^^^^^^ 278s KeyboardInterrupt 278s _________________ AsyncSessionAPITest.test_create_file_session _________________ 278s 278s @self.addCleanup 278s def cleanup_sessions(): 278s for session in self.sess_api.list().json(): 278s > self.sess_api.delete(session['id']) 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 278s return self._req('DELETE', id) 278s ^^^^^^^^^^^^^^^^^^^^^^^ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 278s response.raise_for_status() 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s 278s self = 278s 278s def raise_for_status(self): 278s """Raises :class:`HTTPError`, if one occurred.""" 278s 278s http_error_msg = "" 278s if isinstance(self.reason, bytes): 278s # We attempt to decode utf-8 first because some servers 278s # choose to localize their reason strings. If the string 278s # isn't utf-8, we fall back to iso-8859-1 for all other 278s # encodings. (See PR #3538) 278s try: 278s reason = self.reason.decode("utf-8") 278s except UnicodeDecodeError: 278s reason = self.reason.decode("iso-8859-1") 278s else: 278s reason = self.reason 278s 278s if 400 <= self.status_code < 500: 278s http_error_msg = ( 278s f"{self.status_code} Client Error: {reason} for url: {self.url}" 278s ) 278s 278s elif 500 <= self.status_code < 600: 278s http_error_msg = ( 278s f"{self.status_code} Server Error: {reason} for url: {self.url}" 278s ) 278s 278s if http_error_msg: 278s > raise HTTPError(http_error_msg, response=self) 278s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619 278s 278s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-cc9bd2f5-2014-41da-ad45-78116ec639b2.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43743 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35179 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc9bd2f5-2014-41da-ad45-78116ec639b2, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp1tg8001w/notebooks/foo'} 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.360000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8743f2f9-7f26-4a45-859f-38e916be2045 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8743f2f9-7f26-4a45-859f-38e916be2045 278s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cf284c79-2cb4-435e-9f58-03e683d1835d (::1) 0.580000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc9bd2f5-2014-41da-ad45-78116ec639b2 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc9bd2f5-2014-41da-ad45-78116ec639b2 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619 (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619 (::1) 6.040000ms referer=None 278s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 278s 278s self = 278s 278s def test_create_with_kernel_id(self): 278s # create a new kernel 278s r = self.request('POST', 'api/kernels') 278s r.raise_for_status() 278s kernel = r.json() 278s 278s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 278s self.assertEqual(resp.status_code, 201) 278s newsession = resp.json() 278s self.assertIn('id', newsession) 278s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 278s self.assertEqual(newsession['kernel']['id'], kernel['id']) 278s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 278s 278s sessions = self.sess_api.list().json() 278s > self.assertEqual(sessions, [newsession]) 278s E AssertionError: Lists differ: [{'id': '6d526a04-2bc1-41ec-ba24-0aace47d7619', 'p[553 chars]ne}}] != [{'id': '3e22b39b-a698-4456-a65b-a6db56f53441', 'p[279 chars]ne}}] 278s E 278s E First differing element 0: 278s E {'id': '6d526a04-2bc1-41ec-ba24-0aace47d7619', 'p[218 chars]: 0}} 278s E {'id': '3e22b39b-a698-4456-a65b-a6db56f53441', 'p[278 chars]one}} 278s E 278s E First list contains 1 additional elements. 278s E First extra element 1: 278s E {'id': '3e22b39b-a698-4456-a65b-a6db56f53441', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5460d9bb-4321-4752-ac0c-3b331bdd1c48', 'name': 'python3', 'last_activity': '2026-01-30T06:07:13.345989Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 278s E 278s E Diff is 830 characters long. Set self.maxDiff to None to see it. 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 278s ----------------------------- Captured stderr call ----------------------------- 278s Traceback (most recent call last): 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 278s from ipykernel import kernelapp as app 278s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 278s from .connect import * # noqa: F403 278s ^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 278s import jupyter_client 278s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 278s from .asynchronous import AsyncKernelClient 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 278s from .client import AsyncKernelClient # noqa 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 278s import zmq.asyncio 278s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 278s import asyncio 278s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 278s from .base_events import * 278s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 278s from . import coroutines 278s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 278s import inspect 278s File "/usr/lib/python3.13/inspect.py", line 146, in 278s import dis 278s File "/usr/lib/python3.13/dis.py", line 8, in 278s from opcode import * 278s File "/usr/lib/python3.13/opcode.py", line 15, in 278s from _opcode_metadata import (_specializations, _specialized_opmap, opmap, 278s HAVE_ARGUMENT, MIN_INSTRUMENTED_OPCODE) 278s File "", line 1360, in _find_and_load 278s File "", line 1331, in _find_and_load_unlocked 278s File "", line 935, in _load_unlocked 278s File "", line 1019, in exec_module 278s File "", line 1124, in get_code 278s File "", line 694, in _classify_pyc 278s KeyboardInterrupt 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-5460d9bb-4321-4752-ac0c-3b331bdd1c48.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42511 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33313 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5460d9bb-4321-4752-ac0c-3b331bdd1c48, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.830000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.290000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc9bd2f5-2014-41da-ad45-78116ec639b2 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc9bd2f5-2014-41da-ad45-78116ec639b2 278s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6d526a04-2bc1-41ec-ba24-0aace47d7619 (::1) 0.800000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5460d9bb-4321-4752-ac0c-3b331bdd1c48 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5460d9bb-4321-4752-ac0c-3b331bdd1c48 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 11.340000ms referer=None 278s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 278s 278s @self.addCleanup 278s def cleanup_sessions(): 278s for session in self.sess_api.list().json(): 278s > self.sess_api.delete(session['id']) 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 278s return self._req('DELETE', id) 278s ^^^^^^^^^^^^^^^^^^^^^^^ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 278s response.raise_for_status() 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s 278s self = 278s 278s def raise_for_status(self): 278s """Raises :class:`HTTPError`, if one occurred.""" 278s 278s http_error_msg = "" 278s if isinstance(self.reason, bytes): 278s # We attempt to decode utf-8 first because some servers 278s # choose to localize their reason strings. If the string 278s # isn't utf-8, we fall back to iso-8859-1 for all other 278s # encodings. (See PR #3538) 278s try: 278s reason = self.reason.decode("utf-8") 278s except UnicodeDecodeError: 278s reason = self.reason.decode("iso-8859-1") 278s else: 278s reason = self.reason 278s 278s if 400 <= self.status_code < 500: 278s http_error_msg = ( 278s f"{self.status_code} Client Error: {reason} for url: {self.url}" 278s ) 278s 278s elif 500 <= self.status_code < 600: 278s http_error_msg = ( 278s f"{self.status_code} Server Error: {reason} for url: {self.url}" 278s ) 278s 278s if http_error_msg: 278s > raise HTTPError(http_error_msg, response=self) 278s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 278s 278s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 278s ----------------------------- Captured stderr call ----------------------------- 278s Traceback (most recent call last): 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.740000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-c92e6a79-e14f-441a-9327-11a13596e694.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34773 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34457 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: c92e6a79-e14f-441a-9327-11a13596e694, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.610000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5460d9bb-4321-4752-ac0c-3b331bdd1c48 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5460d9bb-4321-4752-ac0c-3b331bdd1c48 278s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 6.370000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 7.230000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c92e6a79-e14f-441a-9327-11a13596e694 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c92e6a79-e14f-441a-9327-11a13596e694 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 5.510000ms referer=None 278s --------------------------- Captured stderr teardown --------------------------- 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 278s from pathlib import Path 278s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 278s from ._local import * 278s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 278s class _PathParents(Sequence): 278s ...<25 lines>... 278s return "<{}.parents>".format(type(self._path).__name__) 278s File "/usr/lib/python3.13/abc.py", line 105, in __new__ 278s def __new__(mcls, name, bases, namespace, /, **kwargs): 278s 278s KeyboardInterrupt 278s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 278s 278s @self.addCleanup 278s def cleanup_sessions(): 278s for session in self.sess_api.list().json(): 278s > self.sess_api.delete(session['id']) 278s 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 278s return self._req('DELETE', id) 278s ^^^^^^^^^^^^^^^^^^^^^^^ 278s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 278s response.raise_for_status() 278s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 278s 278s self = 278s 278s def raise_for_status(self): 278s """Raises :class:`HTTPError`, if one occurred.""" 278s 278s http_error_msg = "" 278s if isinstance(self.reason, bytes): 278s # We attempt to decode utf-8 first because some servers 278s # choose to localize their reason strings. If the string 278s # isn't utf-8, we fall back to iso-8859-1 for all other 278s # encodings. (See PR #3538) 278s try: 278s reason = self.reason.decode("utf-8") 278s except UnicodeDecodeError: 278s reason = self.reason.decode("iso-8859-1") 278s else: 278s reason = self.reason 278s 278s if 400 <= self.status_code < 500: 278s http_error_msg = ( 278s f"{self.status_code} Client Error: {reason} for url: {self.url}" 278s ) 278s 278s elif 500 <= self.status_code < 600: 278s http_error_msg = ( 278s f"{self.status_code} Server Error: {reason} for url: {self.url}" 278s ) 278s 278s if http_error_msg: 278s > raise HTTPError(http_error_msg, response=self) 278s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 278s 278s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 278s ----------------------------- Captured stderr call ----------------------------- 278s Traceback (most recent call last): 278s ------------------------------ Captured log call ------------------------------- 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 278s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1tg8001w/runtime/kernel-7694f052-9010-479b-bf92-1922b34b48b4.json'] 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57567 278s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51381 278s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7694f052-9010-479b-bf92-1922b34b48b4, name: python3 278s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp1tg8001w/notebooks/foo'} 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c92e6a79-e14f-441a-9327-11a13596e694 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c92e6a79-e14f-441a-9327-11a13596e694 278s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 14.080000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 278s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 278s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7694f052-9010-479b-bf92-1922b34b48b4 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7694f052-9010-479b-bf92-1922b34b48b4 278s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 278s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441', version='HTTP/1.1', remote_ip='::1') 278s Traceback (most recent call last): 278s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 278s result = await result 278s ^^^^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 278s future.result() 278s ~~~~~~~~~~~~~^^ 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 278s yield maybe_future(sm.delete_session(session_id)) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 278s yielded = self.gen.throw(exc) 278s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 278s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 278s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 278s value = future.result() 278s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 278s raise self._exception.with_traceback(self._exception_tb) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 278s result = coro.send(None) 278s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 278s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 278s raise km.ready.exception() # type: ignore[misc] 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 278s await kernel_awaitable 278s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 278s result = await obj 278s ^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 278s raise e 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 278s out = await method(self, *args, **kwargs) 278s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 278s await self._async_finish_shutdown(restart=restart) 278s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 278s await asyncio.wait_for( 278s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 278s ) 278s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 278s async with timeouts.timeout(timeout): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^ 278s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 278s raise RuntimeError("Timeout should be used inside a task") 278s RuntimeError: Timeout should be used inside a task 278s WARNING NotebookApp:handlers.py:612 Unhandled error 278s ERROR NotebookApp:log.py:55 { 278s "Host": "localhost:12341", 278s "Accept": "*/*", 278s "User-Agent": "python-requests/2.32.5" 278s } 278s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3e22b39b-a698-4456-a65b-a6db56f53441 (::1) 5.380000ms referer=None 278s --------------------------- Captured stderr teardown --------------------------- 278s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 278s return _run_code(code, main_globals, None, 278s "__main__", mod_spec) 278s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 278s exec(code, run_globals) 278s ~~~~^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 278s from ipykernel import kernelapp as app 278s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 278s from .connect import * # noqa: F403 278s ^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 278s from subprocess import PIPE, Popen 278s File "/usr/lib/python3.13/subprocess.py", line 46, in 278s import locale 278s File "", line 1360, in _find_and_load 278s File "", line 1322, in _find_and_load_unlocked 278s File "", line 1262, in _find_spec 278s File "", line 1556, in find_spec 278s File "", line 1530, in _get_spec 278s File "", line 1636, in find_spec 278s File "", line 71, in _relax_case 278s KeyboardInterrupt 278s ---------------------------- Captured log teardown ----------------------------- 278s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8743f2f9-7f26-4a45-859f-38e916be2045 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5460d9bb-4321-4752-ac0c-3b331bdd1c48 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7694f052-9010-479b-bf92-1922b34b48b4 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76a631c5-928c-4d4b-977e-739b338152e1 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc9bd2f5-2014-41da-ad45-78116ec639b2 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c92e6a79-e14f-441a-9327-11a13596e694 278s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8d0fc2f-9a96-4814-8467-3a698aa4962e 278s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 278s =============================== warnings summary =============================== 278s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 278s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 278s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 278s return LooseVersion(v) >= LooseVersion(check) 278s 278s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 278s services/kernels/tests/test_kernels_api.py: 68 warnings 278s services/sessions/tests/test_sessions_api.py: 88 warnings 278s /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). 278s dt = unaware(*args, **kwargs) 278s 278s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 278s /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 278s pytestmark = pytest.mark.integration_tests 278s 278s services/kernels/tests/test_kernels_api.py: 6 warnings 278s services/sessions/tests/test_sessions_api.py: 6 warnings 278s /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 278s policy = events.get_event_loop_policy() 278s 278s services/kernels/tests/test_kernels_api.py: 24 warnings 278s services/sessions/tests/test_sessions_api.py: 19 warnings 278s /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 278s loop = events.get_event_loop_policy().get_event_loop() 278s 278s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 278s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 278s loop.make_current() 278s 278s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 278s =========================== short test summary info ============================ 278s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 278s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 278s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 278s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 278s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 278s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 278s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 278s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 278s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 278s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 278s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 278s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 278s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 278s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 278s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 278s ========= 23 failed, 307 deselected, 216 warnings, 4 errors in 14.02s ========== 278s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 278s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 278s autopkgtest [06:05:00]: test pytest: -----------------------] 279s pytest FAIL non-zero exit status 1 279s autopkgtest [06:05:01]: test pytest: - - - - - - - - - - results - - - - - - - - - - 279s autopkgtest [06:05:01]: @@@@@@@@@@@@@@@@@@@@ summary 279s pytest FAIL non-zero exit status 1