0s autopkgtest [08:06:10]: starting date and time: 2026-01-30 08:06:10+0000 0s autopkgtest [08:06:10]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [08:06:10]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.txkc52hg/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-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-14.secgroup --name adt-resolute-amd64-jupyter-notebook-20260130-080610-juju-7f2275-prod-proposed-migration-environment-15-684e2825-77cb-41ec-a508-bbd22df7bbd6 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-amd64-jupyter-notebook-20260130-080610-juju-7f2275-prod-proposed-migration-environment-15-684e2825-77cb-41ec-a508-bbd22df7bbd6 from image adt/ubuntu-resolute-amd64-server-20260130.img (UUID afba56f8-6ab4-44eb-9e07-036bcbd7054f)... 89s autopkgtest [08:07:39]: testbed dpkg architecture: amd64 89s autopkgtest [08:07:39]: testbed apt version: 3.1.14 89s autopkgtest [08:07:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 89s autopkgtest [08:07:39]: testbed release detected to be: None 90s autopkgtest [08:07:40]: updating testbed package index (apt update) 90s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 90s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 91s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 91s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 91s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [103 kB] 91s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1600 kB] 91s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [33.0 kB] 91s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 91s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [121 kB] 91s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [104 kB] 91s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [4424 B] 91s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3696 B] 91s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [12.3 kB] 91s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 91s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [514 kB] 91s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [1187 kB] 92s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [23.0 kB] 92s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [6188 B] 92s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [29.1 kB] 92s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [1036 B] 93s Fetched 3870 kB in 1s (2650 kB/s) 94s Reading package lists... 95s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 95s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 95s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 95s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 96s Reading package lists... 96s Reading package lists... 96s Building dependency tree... 96s Reading state information... 96s Calculating upgrade... 97s The following packages will be upgraded: 97s bzip2 inetutils-telnet libbz2-1.0 libsqlite3-0 telnet 97s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 97s Need to get 904 kB of archives. 97s After this operation, 6144 B of additional disk space will be used. 97s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 bzip2 amd64 1.0.8-6build2 [34.3 kB] 97s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libbz2-1.0 amd64 1.0.8-6build2 [37.0 kB] 97s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libsqlite3-0 amd64 3.46.1-9 [722 kB] 97s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 inetutils-telnet amd64 2:2.7-2ubuntu1 [107 kB] 97s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 telnet all 0.17+2.7-2ubuntu1 [3636 B] 97s dpkg-preconfigure: unable to re-open stdin: No such file or directory 97s Fetched 904 kB in 0s (3799 kB/s) 97s (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 ... 124211 files and directories currently installed.) 97s Preparing to unpack .../bzip2_1.0.8-6build2_amd64.deb ... 97s Unpacking bzip2 (1.0.8-6build2) over (1.0.8-6build1) ... 98s Preparing to unpack .../libbz2-1.0_1.0.8-6build2_amd64.deb ... 98s Unpacking libbz2-1.0:amd64 (1.0.8-6build2) over (1.0.8-6build1) ... 98s Setting up libbz2-1.0:amd64 (1.0.8-6build2) ... 98s (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 ... 124211 files and directories currently installed.) 98s Preparing to unpack .../libsqlite3-0_3.46.1-9_amd64.deb ... 98s Unpacking libsqlite3-0:amd64 (3.46.1-9) over (3.46.1-8) ... 98s Preparing to unpack .../inetutils-telnet_2%3a2.7-2ubuntu1_amd64.deb ... 98s Unpacking inetutils-telnet (2:2.7-2ubuntu1) over (2:2.6-4ubuntu1) ... 98s Preparing to unpack .../telnet_0.17+2.7-2ubuntu1_all.deb ... 98s Unpacking telnet (0.17+2.7-2ubuntu1) over (0.17+2.6-4ubuntu1) ... 98s Setting up libsqlite3-0:amd64 (3.46.1-9) ... 98s Setting up inetutils-telnet (2:2.7-2ubuntu1) ... 98s Setting up bzip2 (1.0.8-6build2) ... 98s Setting up telnet (0.17+2.7-2ubuntu1) ... 98s Processing triggers for man-db (2.13.1-1) ... 99s Processing triggers for libc-bin (2.42-2ubuntu4) ... 99s autopkgtest [08:07:49]: upgrading testbed (apt dist-upgrade and autopurge) 99s Reading package lists... 99s Building dependency tree... 99s Reading state information... 100s Calculating upgrade... 100s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 100s Reading package lists... 100s Building dependency tree... 100s Reading state information... 100s Solving dependencies... 101s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 103s autopkgtest [08:07:53]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 103s autopkgtest [08:07:53]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 105s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 105s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 105s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 106s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 106s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 106s gpgv: Can't check signature: No public key 106s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 106s autopkgtest [08:07:56]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 106s autopkgtest [08:07:56]: build not needed 107s autopkgtest [08:07:57]: test pytest: preparing testbed 107s Reading package lists... 107s Building dependency tree... 107s Reading state information... 107s Solving dependencies... 108s The following NEW packages will be installed: 108s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 108s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libipt2 108s libjs-backbone libjs-bootstrap libjs-bootstrap-tour libjs-codemirror 108s libjs-es6-promise libjs-jed libjs-jquery libjs-jquery-typeahead 108s libjs-jquery-ui libjs-marked libjs-mathjax libjs-moment libjs-requirejs 108s libjs-requirejs-text libjs-text-encoding libjs-underscore libjs-xterm 108s libnorm1t64 libpgm-5.3-0t64 libpython3.14 libpython3.14-minimal 108s libpython3.14-stdlib libsodium23 libsource-highlight-common 108s libsource-highlight4t64 libzmq5 node-jed python-notebook-doc 108s python-tinycss2-common python3-all python3-argon2 108s python3-argon2-cffi-bindings python3-astroid python3-asttokens 108s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 108s python3-debugpy python3-decorator python3-defusedxml python3-executing 108s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 108s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 108s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 108s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 108s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 108s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 108s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 108s python3-pytest python3-requests-unixsocket python3-send2trash 108s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 108s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 108s python3-webencodings python3-zmq python3.14 python3.14-minimal 108s sphinx-rtd-theme-common 108s 0 upgraded, 96 newly installed, 0 to remove and 0 not upgraded. 108s Need to get 41.4 MB of archives. 108s After this operation, 199 MB of additional disk space will be used. 108s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-lato all 2.015-1build1 [2779 kB] 108s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 108s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 108s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 108s Get:5 http://ftpmaster.internal/ubuntu resolute/universe amd64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 108s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 108s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libbabeltrace1 amd64 1.5.11-5 [166 kB] 108s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libipt2 amd64 2.1.2-3 [49.2 kB] 108s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 108s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14 amd64 3.14.2-1 [2568 kB] 108s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 108s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight4t64 amd64 3.1.9-4.3build2 [273 kB] 108s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 gdb amd64 17.1-1ubuntu2 [4173 kB] 108s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.5.1-1 [17.1 kB] 108s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 108s Get:16 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 108s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-core all 5.9.1-1 [6938 B] 108s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 108s Get:19 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 108s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 108s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 109s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 109s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 109s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 109s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 node-jed all 1.1.1-4 [15.2 kB] 109s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jed all 1.1.1-4 [2584 B] 109s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 109s Get:28 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 109s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 109s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 109s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-moment all 2.29.4+ds-1 [147 kB] 109s Get:32 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 109s Get:33 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs-text all 2.0.12-2 [9732 B] 109s Get:34 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-text-encoding all 0.7.0-5 [140 kB] 109s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-xterm all 5.3.0-4 [475 kB] 109s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-tornado amd64 6.5.4-0.1 [306 kB] 109s Get:37 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-terminado all 0.18.1-1 [13.2 kB] 109s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libargon2-1 amd64 0~20190702+dfsg-5 [21.3 kB] 109s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-ply all 3.11-10 [45.9 kB] 109s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-pycparser all 2.23-2 [77.0 kB] 109s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-cffi all 2.0.0-2 [75.5 kB] 109s Get:42 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2-cffi-bindings amd64 25.1.0-2 [15.3 kB] 109s Get:43 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2 amd64 25.1.0-2 [13.8 kB] 109s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-comm all 0.2.1-1build1 [7148 B] 109s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 109s Get:46 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1ubuntu1 [159 kB] 109s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-debugpy amd64 1.8.19+ds-1ubuntu1 [942 kB] 109s Get:48 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 109s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-parso all 0.8.5-1 [68.0 kB] 109s Get:50 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 109s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 109s Get:52 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 109s Get:53 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 109s Get:54 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 109s Get:55 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 109s Get:56 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-asttokens all 3.0.1-1 [20.7 kB] 109s Get:57 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-executing all 2.2.1-0.1 [26.2 kB] 109s Get:58 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pure-eval all 0.2.3-1 [11.4 kB] 109s Get:59 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-stack-data all 0.6.3-3 [22.2 kB] 109s Get:60 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython all 8.35.0-2 [575 kB] 109s Get:61 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psutil amd64 7.1.0-1ubuntu1 [191 kB] 109s Get:62 http://ftpmaster.internal/ubuntu resolute/universe amd64 libnorm1t64 amd64 1.5.9+dfsg-4 [158 kB] 109s Get:63 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpgm-5.3-0t64 amd64 5.3.128~dfsg-2.1build2 [168 kB] 109s Get:64 http://ftpmaster.internal/ubuntu resolute/main amd64 libsodium23 amd64 1.0.18-2 [165 kB] 109s Get:65 http://ftpmaster.internal/ubuntu resolute/universe amd64 libzmq5 amd64 4.3.5-1build3 [262 kB] 109s Get:66 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-zmq amd64 27.1.0-1 [234 kB] 109s Get:67 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 109s Get:68 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nest-asyncio all 1.6.0-1 [6686 B] 109s Get:69 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipykernel all 6.30.1-1 [82.8 kB] 109s Get:70 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 109s Get:71 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 109s Get:72 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 109s Get:73 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 109s Get:74 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-html5lib all 1.2-3 [90.6 kB] 109s Get:75 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-bleach all 6.3.0-1 [44.2 kB] 109s Get:76 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-soupsieve all 2.8.3-1 [34.0 kB] 109s Get:77 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 109s Get:78 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 109s Get:79 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 109s Get:80 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-mistune all 3.1.4-1 [35.0 kB] 109s Get:81 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 109s Get:82 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbformat all 5.10.4-1 [39.2 kB] 109s Get:83 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbclient all 0.10.4-1 [22.6 kB] 109s Get:84 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 109s Get:85 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbconvert all 7.16.6-1 [140 kB] 109s Get:86 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 109s Get:87 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 python3-send2trash all 1.8.3-1build1 [14.8 kB] 110s Get:88 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 110s Get:89 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 110s Get:90 http://ftpmaster.internal/ubuntu resolute/main amd64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 110s Get:91 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 110s Get:92 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-all amd64 3.13.9-3 [890 B] 110s Get:93 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 110s Get:94 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 110s Get:95 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 110s Get:96 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 110s Fetched 41.4 MB in 2s (20.2 MB/s) 110s Selecting previously unselected package fonts-lato. 110s (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 ... 124211 files and directories currently installed.) 110s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 110s Unpacking fonts-lato (2.015-1build1) ... 110s Selecting previously unselected package libpython3.14-minimal:amd64. 110s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_amd64.deb ... 110s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 111s Selecting previously unselected package python3.14-minimal. 111s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_amd64.deb ... 111s Unpacking python3.14-minimal (3.14.2-1) ... 111s Selecting previously unselected package fonts-font-awesome. 111s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 111s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 111s Selecting previously unselected package fonts-glyphicons-halflings. 111s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 111s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 111s Selecting previously unselected package fonts-mathjax. 111s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 111s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 111s Selecting previously unselected package libbabeltrace1:amd64. 111s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_amd64.deb ... 111s Unpacking libbabeltrace1:amd64 (1.5.11-5) ... 111s Selecting previously unselected package libipt2. 111s Preparing to unpack .../07-libipt2_2.1.2-3_amd64.deb ... 111s Unpacking libipt2 (2.1.2-3) ... 111s Selecting previously unselected package libpython3.14-stdlib:amd64. 111s Preparing to unpack .../08-libpython3.14-stdlib_3.14.2-1_amd64.deb ... 111s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 111s Selecting previously unselected package libpython3.14:amd64. 111s Preparing to unpack .../09-libpython3.14_3.14.2-1_amd64.deb ... 111s Unpacking libpython3.14:amd64 (3.14.2-1) ... 111s Selecting previously unselected package libsource-highlight-common. 111s Preparing to unpack .../10-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 111s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 111s Selecting previously unselected package libsource-highlight4t64:amd64. 111s Preparing to unpack .../11-libsource-highlight4t64_3.1.9-4.3build2_amd64.deb ... 111s Unpacking libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 111s Selecting previously unselected package gdb. 111s Preparing to unpack .../12-gdb_17.1-1ubuntu2_amd64.deb ... 111s Unpacking gdb (17.1-1ubuntu2) ... 111s Selecting previously unselected package python3-platformdirs. 111s Preparing to unpack .../13-python3-platformdirs_4.5.1-1_all.deb ... 111s Unpacking python3-platformdirs (4.5.1-1) ... 111s Selecting previously unselected package python3-traitlets. 111s Preparing to unpack .../14-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 111s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 111s Selecting previously unselected package python3-jupyter-core. 111s Preparing to unpack .../15-python3-jupyter-core_5.9.1-1_all.deb ... 111s Unpacking python3-jupyter-core (5.9.1-1) ... 111s Selecting previously unselected package jupyter-core. 111s Preparing to unpack .../16-jupyter-core_5.9.1-1_all.deb ... 111s Unpacking jupyter-core (5.9.1-1) ... 111s Selecting previously unselected package libjs-underscore. 111s Preparing to unpack .../17-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 111s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 111s Selecting previously unselected package libjs-backbone. 111s Preparing to unpack .../18-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 111s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 111s Selecting previously unselected package libjs-bootstrap. 111s Preparing to unpack .../19-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 111s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 111s Selecting previously unselected package libjs-jquery. 111s Preparing to unpack .../20-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 111s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 111s Selecting previously unselected package libjs-bootstrap-tour. 111s Preparing to unpack .../21-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 111s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 111s Selecting previously unselected package libjs-codemirror. 111s Preparing to unpack .../22-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 111s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 112s Selecting previously unselected package libjs-es6-promise. 112s Preparing to unpack .../23-libjs-es6-promise_4.2.8-12_all.deb ... 112s Unpacking libjs-es6-promise (4.2.8-12) ... 112s Selecting previously unselected package node-jed. 112s Preparing to unpack .../24-node-jed_1.1.1-4_all.deb ... 112s Unpacking node-jed (1.1.1-4) ... 112s Selecting previously unselected package libjs-jed. 112s Preparing to unpack .../25-libjs-jed_1.1.1-4_all.deb ... 112s Unpacking libjs-jed (1.1.1-4) ... 112s Selecting previously unselected package libjs-jquery-typeahead. 112s Preparing to unpack .../26-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 112s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 112s Selecting previously unselected package libjs-jquery-ui. 112s Preparing to unpack .../27-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 112s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 112s Selecting previously unselected package libjs-marked. 112s Preparing to unpack .../28-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 112s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 112s Selecting previously unselected package libjs-mathjax. 112s Preparing to unpack .../29-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 112s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 112s Selecting previously unselected package libjs-moment. 112s Preparing to unpack .../30-libjs-moment_2.29.4+ds-1_all.deb ... 112s Unpacking libjs-moment (2.29.4+ds-1) ... 112s Selecting previously unselected package libjs-requirejs. 112s Preparing to unpack .../31-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 112s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 112s Selecting previously unselected package libjs-requirejs-text. 112s Preparing to unpack .../32-libjs-requirejs-text_2.0.12-2_all.deb ... 112s Unpacking libjs-requirejs-text (2.0.12-2) ... 112s Selecting previously unselected package libjs-text-encoding. 112s Preparing to unpack .../33-libjs-text-encoding_0.7.0-5_all.deb ... 112s Unpacking libjs-text-encoding (0.7.0-5) ... 112s Selecting previously unselected package libjs-xterm. 112s Preparing to unpack .../34-libjs-xterm_5.3.0-4_all.deb ... 112s Unpacking libjs-xterm (5.3.0-4) ... 112s Selecting previously unselected package python3-tornado. 112s Preparing to unpack .../35-python3-tornado_6.5.4-0.1_amd64.deb ... 112s Unpacking python3-tornado (6.5.4-0.1) ... 112s Selecting previously unselected package python3-terminado. 112s Preparing to unpack .../36-python3-terminado_0.18.1-1_all.deb ... 112s Unpacking python3-terminado (0.18.1-1) ... 112s Selecting previously unselected package libargon2-1:amd64. 112s Preparing to unpack .../37-libargon2-1_0~20190702+dfsg-5_amd64.deb ... 112s Unpacking libargon2-1:amd64 (0~20190702+dfsg-5) ... 112s Selecting previously unselected package python3-ply. 112s Preparing to unpack .../38-python3-ply_3.11-10_all.deb ... 112s Unpacking python3-ply (3.11-10) ... 112s Selecting previously unselected package python3-pycparser. 112s Preparing to unpack .../39-python3-pycparser_2.23-2_all.deb ... 112s Unpacking python3-pycparser (2.23-2) ... 112s Selecting previously unselected package python3-cffi. 112s Preparing to unpack .../40-python3-cffi_2.0.0-2_all.deb ... 112s Unpacking python3-cffi (2.0.0-2) ... 112s Selecting previously unselected package python3-argon2-cffi-bindings. 112s Preparing to unpack .../41-python3-argon2-cffi-bindings_25.1.0-2_amd64.deb ... 112s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 112s Selecting previously unselected package python3-argon2. 113s Preparing to unpack .../42-python3-argon2_25.1.0-2_amd64.deb ... 113s Unpacking python3-argon2 (25.1.0-2) ... 113s Selecting previously unselected package python3-comm. 113s Preparing to unpack .../43-python3-comm_0.2.1-1build1_all.deb ... 113s Unpacking python3-comm (0.2.1-1build1) ... 113s Selecting previously unselected package python3.14. 113s Preparing to unpack .../44-python3.14_3.14.2-1_amd64.deb ... 113s Unpacking python3.14 (3.14.2-1) ... 113s Selecting previously unselected package python3-coverage. 113s Preparing to unpack .../45-python3-coverage_7.8.2+dfsg1-1ubuntu1_amd64.deb ... 113s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 113s Selecting previously unselected package python3-debugpy. 113s Preparing to unpack .../46-python3-debugpy_1.8.19+ds-1ubuntu1_amd64.deb ... 113s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 113s Selecting previously unselected package python3-decorator. 113s Preparing to unpack .../47-python3-decorator_5.2.1-2_all.deb ... 113s Unpacking python3-decorator (5.2.1-2) ... 113s Selecting previously unselected package python3-parso. 113s Preparing to unpack .../48-python3-parso_0.8.5-1_all.deb ... 113s Unpacking python3-parso (0.8.5-1) ... 113s Selecting previously unselected package python3-typeshed. 113s Preparing to unpack .../49-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 113s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 113s Selecting previously unselected package python3-jedi. 113s Preparing to unpack .../50-python3-jedi_0.19.1+ds1-1build1_all.deb ... 113s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 113s Selecting previously unselected package python3-matplotlib-inline. 113s Preparing to unpack .../51-python3-matplotlib-inline_0.2.1-1_all.deb ... 113s Unpacking python3-matplotlib-inline (0.2.1-1) ... 113s Selecting previously unselected package python3-wcwidth. 113s Preparing to unpack .../52-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 113s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 113s Selecting previously unselected package python3-prompt-toolkit. 113s Preparing to unpack .../53-python3-prompt-toolkit_3.0.52-2_all.deb ... 113s Unpacking python3-prompt-toolkit (3.0.52-2) ... 113s Selecting previously unselected package python3-astroid. 113s Preparing to unpack .../54-python3-astroid_4.0.2-1ubuntu1_all.deb ... 113s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 113s Selecting previously unselected package python3-asttokens. 113s Preparing to unpack .../55-python3-asttokens_3.0.1-1_all.deb ... 113s Unpacking python3-asttokens (3.0.1-1) ... 113s Selecting previously unselected package python3-executing. 113s Preparing to unpack .../56-python3-executing_2.2.1-0.1_all.deb ... 113s Unpacking python3-executing (2.2.1-0.1) ... 113s Selecting previously unselected package python3-pure-eval. 113s Preparing to unpack .../57-python3-pure-eval_0.2.3-1_all.deb ... 113s Unpacking python3-pure-eval (0.2.3-1) ... 113s Selecting previously unselected package python3-stack-data. 113s Preparing to unpack .../58-python3-stack-data_0.6.3-3_all.deb ... 113s Unpacking python3-stack-data (0.6.3-3) ... 113s Selecting previously unselected package python3-ipython. 114s Preparing to unpack .../59-python3-ipython_8.35.0-2_all.deb ... 114s Unpacking python3-ipython (8.35.0-2) ... 114s Selecting previously unselected package python3-psutil. 114s Preparing to unpack .../60-python3-psutil_7.1.0-1ubuntu1_amd64.deb ... 114s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 114s Selecting previously unselected package libnorm1t64:amd64. 114s Preparing to unpack .../61-libnorm1t64_1.5.9+dfsg-4_amd64.deb ... 114s Unpacking libnorm1t64:amd64 (1.5.9+dfsg-4) ... 114s Selecting previously unselected package libpgm-5.3-0t64:amd64. 114s Preparing to unpack .../62-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_amd64.deb ... 114s Unpacking libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 114s Selecting previously unselected package libsodium23:amd64. 114s Preparing to unpack .../63-libsodium23_1.0.18-2_amd64.deb ... 114s Unpacking libsodium23:amd64 (1.0.18-2) ... 114s Selecting previously unselected package libzmq5:amd64. 114s Preparing to unpack .../64-libzmq5_4.3.5-1build3_amd64.deb ... 114s Unpacking libzmq5:amd64 (4.3.5-1build3) ... 114s Selecting previously unselected package python3-zmq. 114s Preparing to unpack .../65-python3-zmq_27.1.0-1_amd64.deb ... 114s Unpacking python3-zmq (27.1.0-1) ... 114s Selecting previously unselected package python3-jupyter-client. 114s Preparing to unpack .../66-python3-jupyter-client_8.7.0-1_all.deb ... 114s Unpacking python3-jupyter-client (8.7.0-1) ... 114s Selecting previously unselected package python3-nest-asyncio. 114s Preparing to unpack .../67-python3-nest-asyncio_1.6.0-1_all.deb ... 114s Unpacking python3-nest-asyncio (1.6.0-1) ... 114s Selecting previously unselected package python3-ipykernel. 114s Preparing to unpack .../68-python3-ipykernel_6.30.1-1_all.deb ... 114s Unpacking python3-ipykernel (6.30.1-1) ... 114s Selecting previously unselected package python3-ipython-genutils. 114s Preparing to unpack .../69-python3-ipython-genutils_0.2.0-7_all.deb ... 114s Unpacking python3-ipython-genutils (0.2.0-7) ... 114s Selecting previously unselected package python-tinycss2-common. 114s Preparing to unpack .../70-python-tinycss2-common_1.5.1-1_all.deb ... 114s Unpacking python-tinycss2-common (1.5.1-1) ... 114s Selecting previously unselected package python3-webencodings. 114s Preparing to unpack .../71-python3-webencodings_0.5.1-5build1_all.deb ... 114s Unpacking python3-webencodings (0.5.1-5build1) ... 114s Selecting previously unselected package python3-tinycss2. 114s Preparing to unpack .../72-python3-tinycss2_1.5.1-1_all.deb ... 114s Unpacking python3-tinycss2 (1.5.1-1) ... 114s Selecting previously unselected package python3-html5lib. 114s Preparing to unpack .../73-python3-html5lib_1.2-3_all.deb ... 114s Unpacking python3-html5lib (1.2-3) ... 114s Selecting previously unselected package python3-bleach. 114s Preparing to unpack .../74-python3-bleach_6.3.0-1_all.deb ... 114s Unpacking python3-bleach (6.3.0-1) ... 114s Selecting previously unselected package python3-soupsieve. 114s Preparing to unpack .../75-python3-soupsieve_2.8.3-1_all.deb ... 114s Unpacking python3-soupsieve (2.8.3-1) ... 114s Selecting previously unselected package python3-bs4. 114s Preparing to unpack .../76-python3-bs4_4.14.3-2build1_all.deb ... 114s Unpacking python3-bs4 (4.14.3-2build1) ... 114s Selecting previously unselected package python3-defusedxml. 114s Preparing to unpack .../77-python3-defusedxml_0.7.1-3build1_all.deb ... 114s Unpacking python3-defusedxml (0.7.1-3build1) ... 114s Selecting previously unselected package python3-jupyterlab-pygments. 114s Preparing to unpack .../78-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 114s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 114s Selecting previously unselected package python3-mistune. 114s Preparing to unpack .../79-python3-mistune_3.1.4-1_all.deb ... 114s Unpacking python3-mistune (3.1.4-1) ... 114s Selecting previously unselected package python3-fastjsonschema. 114s Preparing to unpack .../80-python3-fastjsonschema_2.21.1-1_all.deb ... 114s Unpacking python3-fastjsonschema (2.21.1-1) ... 114s Selecting previously unselected package python3-nbformat. 114s Preparing to unpack .../81-python3-nbformat_5.10.4-1_all.deb ... 114s Unpacking python3-nbformat (5.10.4-1) ... 114s Selecting previously unselected package python3-nbclient. 114s Preparing to unpack .../82-python3-nbclient_0.10.4-1_all.deb ... 114s Unpacking python3-nbclient (0.10.4-1) ... 114s Selecting previously unselected package python3-pandocfilters. 114s Preparing to unpack .../83-python3-pandocfilters_1.5.1-1_all.deb ... 114s Unpacking python3-pandocfilters (1.5.1-1) ... 114s Selecting previously unselected package python3-nbconvert. 114s Preparing to unpack .../84-python3-nbconvert_7.16.6-1_all.deb ... 114s Unpacking python3-nbconvert (7.16.6-1) ... 114s Selecting previously unselected package python3-prometheus-client. 114s Preparing to unpack .../85-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 114s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 114s Selecting previously unselected package python3-send2trash. 114s Preparing to unpack .../86-python3-send2trash_1.8.3-1build1_all.deb ... 114s Unpacking python3-send2trash (1.8.3-1build1) ... 114s Selecting previously unselected package python3-notebook. 114s Preparing to unpack .../87-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 114s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 115s Selecting previously unselected package jupyter-notebook. 115s Preparing to unpack .../88-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 115s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 115s Selecting previously unselected package sphinx-rtd-theme-common. 115s Preparing to unpack .../89-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 115s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 115s Selecting previously unselected package python-notebook-doc. 115s Preparing to unpack .../90-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 115s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 115s Selecting previously unselected package python3-all. 115s Preparing to unpack .../91-python3-all_3.13.9-3_amd64.deb ... 115s Unpacking python3-all (3.13.9-3) ... 115s Selecting previously unselected package python3-iniconfig. 115s Preparing to unpack .../92-python3-iniconfig_2.1.0-2_all.deb ... 115s Unpacking python3-iniconfig (2.1.0-2) ... 115s Selecting previously unselected package python3-pluggy. 115s Preparing to unpack .../93-python3-pluggy_1.6.0-2_all.deb ... 115s Unpacking python3-pluggy (1.6.0-2) ... 115s Selecting previously unselected package python3-pytest. 115s Preparing to unpack .../94-python3-pytest_9.0.2-2_all.deb ... 115s Unpacking python3-pytest (9.0.2-2) ... 115s Selecting previously unselected package python3-requests-unixsocket. 115s Preparing to unpack .../95-python3-requests-unixsocket_1.0.1-1_all.deb ... 115s Unpacking python3-requests-unixsocket (1.0.1-1) ... 115s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 115s Setting up python3-iniconfig (2.1.0-2) ... 115s Setting up python3-tornado (6.5.4-0.1) ... 116s Setting up libnorm1t64:amd64 (1.5.9+dfsg-4) ... 116s Setting up python3-pure-eval (0.2.3-1) ... 116s Setting up python3-send2trash (1.8.3-1build1) ... 117s Setting up fonts-lato (2.015-1build1) ... 117s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 117s Setting up libsodium23:amd64 (1.0.18-2) ... 117s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 117s Setting up libjs-requirejs-text (2.0.12-2) ... 117s Setting up python3-parso (0.8.5-1) ... 117s Setting up python3-defusedxml (0.7.1-3build1) ... 117s Setting up python3-ipython-genutils (0.2.0-7) ... 117s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 117s Setting up libargon2-1:amd64 (0~20190702+dfsg-5) ... 117s Setting up python3-ply (3.11-10) ... 118s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 118s Setting up libjs-moment (2.29.4+ds-1) ... 118s Setting up python3-pandocfilters (1.5.1-1) ... 118s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 118s Setting up libjs-es6-promise (4.2.8-12) ... 118s Setting up libjs-text-encoding (0.7.0-5) ... 118s Setting up python3-webencodings (0.5.1-5build1) ... 118s Setting up python3-platformdirs (4.5.1-1) ... 118s Setting up python3-psutil (7.1.0-1ubuntu1) ... 119s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 119s Setting up python3-pycparser (2.23-2) ... 120s Setting up python3-requests-unixsocket (1.0.1-1) ... 120s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 120s Setting up libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 120s Setting up python3-decorator (5.2.1-2) ... 120s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 120s Setting up node-jed (1.1.1-4) ... 120s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 120s Setting up libjs-xterm (5.3.0-4) ... 121s Setting up python3-nest-asyncio (1.6.0-1) ... 121s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 121s Setting up libjs-jed (1.1.1-4) ... 121s Setting up libipt2 (2.1.2-3) ... 121s Setting up python3-html5lib (1.2-3) ... 121s Setting up libbabeltrace1:amd64 (1.5.11-5) ... 121s Setting up python3-pluggy (1.6.0-2) ... 121s Setting up python3-fastjsonschema (2.21.1-1) ... 122s Setting up python3-terminado (0.18.1-1) ... 122s Setting up python3-astroid (4.0.2-1ubuntu1) ... 122s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 123s Setting up python-tinycss2-common (1.5.1-1) ... 123s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 123s Setting up python3-mistune (3.1.4-1) ... 123s Setting up python3-soupsieve (2.8.3-1) ... 123s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 123s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 123s Setting up python3.14-minimal (3.14.2-1) ... 124s Setting up python3-jupyter-core (5.9.1-1) ... 125s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 125s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 125s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 125s Setting up python3-prompt-toolkit (3.0.52-2) ... 126s Setting up python3-tinycss2 (1.5.1-1) ... 126s Setting up libzmq5:amd64 (4.3.5-1build3) ... 126s Setting up python3-jedi (0.19.1+ds1-1build1) ... 126s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 126s Setting up python3-asttokens (3.0.1-1) ... 127s Setting up python3-pytest (9.0.2-2) ... 127s Setting up python3-cffi (2.0.0-2) ... 128s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 128s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 128s Setting up libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 128s Setting up python3-nbformat (5.10.4-1) ... 128s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 128s Setting up python3-bs4 (4.14.3-2build1) ... 128s Setting up python3-bleach (6.3.0-1) ... 129s Setting up python3-matplotlib-inline (0.2.1-1) ... 129s Setting up python3-comm (0.2.1-1build1) ... 129s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 129s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 129s Setting up python3-executing (2.2.1-0.1) ... 130s Setting up python3-zmq (27.1.0-1) ... 130s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 130s Setting up python3-argon2 (25.1.0-2) ... 130s Setting up libpython3.14:amd64 (3.14.2-1) ... 130s Setting up python3-jupyter-client (8.7.0-1) ... 131s Setting up jupyter-core (5.9.1-1) ... 131s Setting up python3.14 (3.14.2-1) ... 132s Setting up python3-stack-data (0.6.3-3) ... 132s Setting up python3-all (3.13.9-3) ... 132s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 133s Setting up python3-nbclient (0.10.4-1) ... 133s Setting up gdb (17.1-1ubuntu2) ... 133s Setting up python3-ipython (8.35.0-2) ... 134s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 134s return result 134s Setting up python3-nbconvert (7.16.6-1) ... 135s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 136s Setting up python3-ipykernel (6.30.1-1) ... 136s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 137s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 137s Processing triggers for systemd (259-1ubuntu2) ... 137s Processing triggers for man-db (2.13.1-1) ... 138s Processing triggers for libc-bin (2.42-2ubuntu4) ... 140s autopkgtest [08:08:30]: test pytest: [----------------------- 140s Testing with python3.14 140s *** 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 144s ============================= test session starts ============================== 144s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 144s rootdir: /tmp/autopkgtest.crwF8L/autopkgtest_tmp 144s plugins: typeguard-4.4.4 144s collected 330 items / 6 deselected / 324 selected 144s 144s auth/tests/test_login.py .. [ 0%] 145s auth/tests/test_security.py .... [ 1%] 145s bundler/tests/test_bundler_api.py ..... [ 3%] 145s bundler/tests/test_bundler_tools.py ............. [ 7%] 146s bundler/tests/test_bundlerextension.py ... [ 8%] 146s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 146s services/api/tests/test_api.py ... [ 11%] 146s services/config/tests/test_config_api.py ... [ 12%] 147s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 148s ................s...........ss..s......................... [ 38%] 148s services/contents/tests/test_fileio.py ... [ 39%] 148s services/contents/tests/test_largefilemanager.py . [ 39%] 149s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 149s .... [ 50%] 160s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 160s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 160s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 160s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 162s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 162s F [ 66%] 167s terminal/tests/test_terminals_api.py ........ [ 68%] 167s tests/test_config_manager.py . [ 68%] 167s tests/test_files.py ..... [ 70%] 167s tests/test_gateway.py ...... [ 72%] 167s tests/test_i18n.py . [ 72%] 167s tests/test_log.py . [ 72%] 168s tests/test_nbextensions.py ................................... [ 83%] 170s tests/test_notebookapp.py .......................... [ 91%] 170s tests/test_paths.py ... [ 92%] 170s tests/test_serialize.py .. [ 93%] 171s tests/test_serverextensions.py ..... [ 94%] 171s tests/test_traittypes.py ........... [ 98%] 172s tests/test_utils.py ....s [ 99%] 172s tree/tests/test_tree_handler.py . [100%] 172s 172s ==================================== ERRORS ==================================== 172s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 18, in 172s from collections import namedtuple 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1104, in get_code 172s File "", line 509, in cache_from_source 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-f7acb6fc-6258-4d26-8cb7-223a19eaa3ae.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34223 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48707 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: f7acb6fc-6258-4d26-8cb7-223a19eaa3ae, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.850000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-2037694a-2b84-45f9-b49f-5836cb5ef572.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38245 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40489 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2037694a-2b84-45f9-b49f-5836cb5ef572, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.450000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.860000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2037694a-2b84-45f9-b49f-5836cb5ef572 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572/interrupt (::1) 3.000000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572/restart (::1) 10.790000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.560000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 172s import jupyter_client 172s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 172s from .asynchronous import AsyncKernelClient 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 172s from .client import AsyncKernelClient # noqa 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 172s import zmq.asyncio 172s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 172s import asyncio 172s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 172s from .base_events import * 172s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 172s import ssl 172s File "/usr/lib/python3.13/ssl.py", line 148, in 172s _IntEnum._convert_( 172s ~~~~~~~~~~~~~~~~~~^ 172s 'VerifyMode', __name__, 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s lambda name: name.startswith('CERT_'), 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s source=_ssl) 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 172s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 172s File "/usr/lib/python3.13/enum.py", line 1805, in convert_class 172s enum_class = type(cls_name, (etype, ), body, boundary=boundary, _simple=True) 172s File "/usr/lib/python3.13/enum.py", line 505, in __new__ 172s return super().__new__(metacls, cls, bases, classdict, **kwds) 172s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s KeyboardInterrupt 172s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Could not import runpy module 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 14, in 172s import importlib.machinery # importlib first so we can test #15386 via -m 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-dcb9c5f7-e367-4612-bfb4-09c346810634.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36653 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60251 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcb9c5f7-e367-4612-bfb4-09c346810634, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.810000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-b3425336-1f46-458e-920a-c1e94f999dce.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37547 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59729 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3425336-1f46-458e-920a-c1e94f999dce, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.330000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b3425336-1f46-458e-920a-c1e94f999dce 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce/interrupt (::1) 4.570000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 172s result = coro.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 172s yield self # This tells Task to wait for completion. 172s ^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce/restart (::1) 9.840000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.570000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcb9c5f7-e367-4612-bfb4-09c346810634 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcb9c5f7-e367-4612-bfb4-09c346810634 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 172s import jupyter_client 172s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 172s from .asynchronous import AsyncKernelClient 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 172s from .client import AsyncKernelClient # noqa 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 172s import zmq.asyncio 172s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 172s import asyncio 172s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 172s from .base_events import * 172s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 172s import concurrent.futures 172s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 172s from concurrent.futures._base import (FIRST_COMPLETED, 172s ...<9 lines>... 172s as_completed) 172s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 261, in 172s DoneAndNotDoneFutures = collections.namedtuple( 172s 'DoneAndNotDoneFutures', 'done not_done') 172s File "/usr/lib/python3.13/collections/__init__.py", line 411, in namedtuple 172s if name.startswith('_') and not rename: 172s ~~~~~~~~~~~~~~~^^^^^ 172s KeyboardInterrupt 172s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-8512b9b2-a688-4c91-9d91-61b4a360e78f.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45725 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39915 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8512b9b2-a688-4c91-9d91-61b4a360e78f, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.350000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.130000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.740000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220 (::1) 2.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8512b9b2-a688-4c91-9d91-61b4a360e78f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8512b9b2-a688-4c91-9d91-61b4a360e78f 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c (::1) 8.350000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 172s import json 172s File "/usr/lib/python3.13/json/__init__.py", line 107, in 172s from .encoder import JSONEncoder 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 172s from subprocess import PIPE, Popen 172s File "/usr/lib/python3.13/subprocess.py", line 476, in 172s class CompletedProcess(object): 172s ...<32 lines>... 172s self.stderr) 172s File "/usr/lib/python3.13/subprocess.py", line 476, in CompletedProcess 172s class CompletedProcess(object): 172s 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52205 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59695 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.150000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-654bc3c6-9311-40e8-a548-888025241ec2.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58527 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49765 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 654bc3c6-9311-40e8-a548-888025241ec2, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.710000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 172s km.shutdown_kernel(before['kernel']['id']) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 19.920000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 654bc3c6-9311-40e8-a548-888025241ec2 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 654bc3c6-9311-40e8-a548-888025241ec2 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 11.120000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 172s import jupyter_client 172s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 3, in 172s from ._version import __version__, protocol_version, protocol_version_info, version_info 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.770000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-290ce378-c114-4b3b-a3dd-957303771f0f.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43641 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52843 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 290ce378-c114-4b3b-a3dd-957303771f0f, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 654bc3c6-9311-40e8-a548-888025241ec2 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 654bc3c6-9311-40e8-a548-888025241ec2 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 20.870000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.660000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 290ce378-c114-4b3b-a3dd-957303771f0f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 290ce378-c114-4b3b-a3dd-957303771f0f 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 5, in 172s import re 172s File "/usr/lib/python3.13/re/__init__.py", line 126, in 172s from . import _compiler, _parser 172s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 172s import _sre 172s File "", line 1360, in _find_and_load 172s File "", line 1322, in _find_and_load_unlocked 172s File "", line 1262, in _find_spec 172s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 172s method_name = 'spec_for_{fullname}'.format(**locals()) 172s KeyboardInterrupt 172s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d3c6f970-7436-442f-9807-e5c802b77a3a 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-a0dc6f27-4078-4243-a60b-e177e8b6e36a.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51431 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47199 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0dc6f27-4078-4243-a60b-e177e8b6e36a, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.610000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75352048-47d2-4cc5-88fd-b634d782c65b 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75352048-47d2-4cc5-88fd-b634d782c65b 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d70539b3-0aea-4af4-abb0-0222db3c209e (::1) 2.660000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0dc6f27-4078-4243-a60b-e177e8b6e36a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc6f27-4078-4243-a60b-e177e8b6e36a 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d3c6f970-7436-442f-9807-e5c802b77a3a (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d3c6f970-7436-442f-9807-e5c802b77a3a', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 5, in 172s import re 172s File "/usr/lib/python3.13/re/__init__.py", line 179, in 172s class _ZeroSentinel(int): 172s pass 172s KeyboardInterrupt 172s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 172s from subprocess import PIPE, Popen 172s File "/usr/lib/python3.13/subprocess.py", line 46, in 172s import locale 172s File "/usr/lib/python3.13/locale.py", line 47, in 172s from _locale import * 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-f97d550d-0f80-4c23-a5e6-1b04dba7e1c9.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54677 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56299 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: f97d550d-0f80-4c23-a5e6-1b04dba7e1c9, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.190000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46907 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51475 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.480000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f97d550d-0f80-4c23-a5e6-1b04dba7e1c9 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f97d550d-0f80-4c23-a5e6-1b04dba7e1c9 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 172s yield maybe_future( 172s km.shutdown_kernel(before['kernel']['id']) 172s ) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 16.310000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 7.360000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 172s from subprocess import PIPE, Popen 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-358a3e06-3709-4f99-8c05-506b683e7e8a.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57507 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53429 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 358a3e06-3709-4f99-8c05-506b683e7e8a, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 16.180000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.870000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 358a3e06-3709-4f99-8c05-506b683e7e8a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 358a3e06-3709-4f99-8c05-506b683e7e8a 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 7.800000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 3, in 172s import contextlib 172s File "/usr/lib/python3.13/contextlib.py", line 17, in 172s class AbstractContextManager(abc.ABC): 172s ...<20 lines>... 172s return NotImplemented 172s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 172s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 172s KeyboardInterrupt 172s =================================== FAILURES =================================== 172s ______________________ KernelAPITest.test_default_kernel _______________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9a4e0a39-bef2-46ad-928b-9dc663cb0206 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5_9lypkw/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5_9lypkw/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5_9lypkw/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5_9lypkw/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5_9lypkw/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5_9lypkw/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5_9lypkw/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.280000ms referer=None 172s ----------------------------- Captured stderr call ----------------------------- 172s Fatal Python error: init_import_site: Failed to import the site module 172s Python runtime state: initialized 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-9a4e0a39-bef2-46ad-928b-9dc663cb0206.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47715 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52413 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9a4e0a39-bef2-46ad-928b-9dc663cb0206, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 55.230000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.770000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a4e0a39-bef2-46ad-928b-9dc663cb0206 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a4e0a39-bef2-46ad-928b-9dc663cb0206 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9a4e0a39-bef2-46ad-928b-9dc663cb0206 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9a4e0a39-bef2-46ad-928b-9dc663cb0206', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/site.py", line 735, in 172s main() 172s ~~~~^^ 172s File "/usr/lib/python3.13/site.py", line 728, in main 172s execsitecustomize() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.13/site.py", line 667, in execsitecustomize 172s import sitecustomize 172s File "/usr/lib/python3.13/sitecustomize.py", line 3, in 172s import apport_python_hook 172s File "", line 1360, in _find_and_load 172s File "", line 1322, in _find_and_load_unlocked 172s File "", line 1262, in _find_spec 172s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 172s method_name = 'spec_for_{fullname}'.format(**locals()) 172s KeyboardInterrupt 172s ______________________ KernelAPITest.test_kernel_handler _______________________ 172s 172s self = 172s 172s def test_kernel_handler(self): 172s # GET kernel with given id 172s kid = self.kern_api.start().json()['id'] 172s r = self.kern_api.get(kid) 172s kern1 = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kern1, dict) 172s self.assertIn('id', kern1) 172s self.assertEqual(kern1['id'], kid) 172s 172s # Request a bad kernel id and check that a JSON 172s # message is returned! 172s bad_id = '111-111-111-111-111' 172s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 172s self.kern_api.get(bad_id) 172s 172s # DELETE kernel with id 172s > r = self.kern_api.shutdown(kid) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cd6864e4-dffb-44e4-9628-96885e64dd02 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 227, in 172s from _functools import cmp_to_key 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-cd6864e4-dffb-44e4-9628-96885e64dd02.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44845 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57765 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: cd6864e4-dffb-44e4-9628-96885e64dd02, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.720000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/cd6864e4-dffb-44e4-9628-96885e64dd02 (::1) 0.950000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s 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 172s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.100000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd6864e4-dffb-44e4-9628-96885e64dd02 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd6864e4-dffb-44e4-9628-96885e64dd02 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cd6864e4-dffb-44e4-9628-96885e64dd02 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cd6864e4-dffb-44e4-9628-96885e64dd02', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/cd6864e4-dffb-44e4-9628-96885e64dd02 (::1) 8.820000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9a4e0a39-bef2-46ad-928b-9dc663cb0206 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9a4e0a39-bef2-46ad-928b-9dc663cb0206 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9a4e0a39-bef2-46ad-928b-9dc663cb0206 (::1) 2.920000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd6864e4-dffb-44e4-9628-96885e64dd02 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd6864e4-dffb-44e4-9628-96885e64dd02 172s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 172s 172s self = 172s 172s def test_main_kernel_handler(self): 172s # POST request 172s r = self.kern_api.start() 172s kern1 = r.json() 172s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 172s self.assertEqual(r.status_code, 201) 172s self.assertIsInstance(kern1, dict) 172s 172s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 172s expected_csp = '; '.join([ 172s "frame-ancestors 'self'", 172s 'report-uri ' + report_uri, 172s "default-src 'none'" 172s ]) 172s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 172s 172s # GET request 172s r = self.kern_api.list() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(r.json(), list) 172s self.assertEqual(r.json()[0]['id'], kern1['id']) 172s self.assertEqual(r.json()[0]['name'], kern1['name']) 172s 172s # create another kernel and check that they both are added to the 172s # list of kernels from a GET request 172s kern2 = self.kern_api.start().json() 172s assert isinstance(kern2, dict) 172s r = self.kern_api.list() 172s kernels = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kernels, list) 172s self.assertEqual(len(kernels), 2) 172s 172s # Interrupt a kernel 172s r = self.kern_api.interrupt(kern2['id']) 172s self.assertEqual(r.status_code, 204) 172s 172s # Restart a kernel 172s > r = self.kern_api.restart(kern2['id']) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 172s return self._req('POST', url_path_join(id, 'restart')) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572/restart 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 18, in 172s from collections import namedtuple 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1104, in get_code 172s File "", line 509, in cache_from_source 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-f7acb6fc-6258-4d26-8cb7-223a19eaa3ae.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34223 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48707 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: f7acb6fc-6258-4d26-8cb7-223a19eaa3ae, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.850000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5_9lypkw/runtime/kernel-2037694a-2b84-45f9-b49f-5836cb5ef572.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38245 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40489 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2037694a-2b84-45f9-b49f-5836cb5ef572, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.450000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.860000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2037694a-2b84-45f9-b49f-5836cb5ef572 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572/interrupt (::1) 3.000000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572/restart (::1) 10.790000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.560000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ________________________ KernelAPITest.test_no_kernels _________________________ 172s 172s self = 172s 172s def test_no_kernels(self): 172s """Make sure there are no kernels running at the start""" 172s kernels = self.kern_api.list().json() 172s > self.assertEqual(kernels, []) 172s E AssertionError: Lists differ: [{'id': 'f7acb6fc-6258-4d26-8cb7-223a19eaa[281 chars]: 0}] != [] 172s E 172s E First list contains 2 additional elements. 172s E First extra element 0: 172s E {'id': 'f7acb6fc-6258-4d26-8cb7-223a19eaa3ae', 'name': 'python3', 'last_activity': '2026-01-30T08:08:38.986693Z', 'execution_state': 'starting', 'connections': 0} 172s E 172s E + [] 172s E - [{'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': 'f7acb6fc-6258-4d26-8cb7-223a19eaa3ae', 172s E - 'last_activity': '2026-01-30T08:08:38.986693Z', 172s E - 'name': 'python3'}, 172s E - {'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': '2037694a-2b84-45f9-b49f-5836cb5ef572', 172s E - 'last_activity': '2026-01-30T08:08:39.012449Z', 172s E - 'name': 'python3'}] 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.100000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f7acb6fc-6258-4d26-8cb7-223a19eaa3ae 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f7acb6fc-6258-4d26-8cb7-223a19eaa3ae (::1) 1.040000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2037694a-2b84-45f9-b49f-5836cb5ef572 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2037694a-2b84-45f9-b49f-5836cb5ef572 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2037694a-2b84-45f9-b49f-5836cb5ef572 (::1) 1.190000ms 172s ---------------------------- Captured log teardown ----------------------------- 172s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 172s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 172s _____________________ AsyncKernelAPITest.test_connections ______________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpyxv58q6e/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpyxv58q6e/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyxv58q6e/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyxv58q6e/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyxv58q6e/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyxv58q6e/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpyxv58q6e/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.900000ms referer=None 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43447 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55765 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.850000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 0.960000ms 172s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab/channels 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 172s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38195 172s 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/'}]} 172s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab) to 5.4 (client). 172s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab/channels (::1) 640.870000ms 172s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab/channels 172s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55765 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38195 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43447 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36623 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38195 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43447 172s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 172s Setting websocket_ping_timeout=30000 172s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 1.190000ms 172s DEBUG NotebookApp:handlers.py:579 Websocket closed 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab:79c376f1-19d2b9145fd2c6ea350902f3 172s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab:79c376f1-19d2b9145fd2c6ea350902f3 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 1.730000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 0.820000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 8.120000ms referer=None 172s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f1397f27-16db-487d-8ed0-e2c57916bcbe 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 172s from ._local import * 172s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 172s class PureWindowsPath(PurePath): 172s ...<7 lines>... 172s __slots__ = () 172s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 172s import ntpath 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 946, in _load_unlocked 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-f1397f27-16db-487d-8ed0-e2c57916bcbe.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43919 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39451 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: f1397f27-16db-487d-8ed0-e2c57916bcbe, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.490000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.010000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab (::1) 0.930000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f1397f27-16db-487d-8ed0-e2c57916bcbe 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f1397f27-16db-487d-8ed0-e2c57916bcbe 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f1397f27-16db-487d-8ed0-e2c57916bcbe (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f1397f27-16db-487d-8ed0-e2c57916bcbe', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 172s 172s self = 172s 172s def test_kernel_handler(self): 172s # GET kernel with given id 172s kid = self.kern_api.start().json()['id'] 172s r = self.kern_api.get(kid) 172s kern1 = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kern1, dict) 172s self.assertIn('id', kern1) 172s self.assertEqual(kern1['id'], kid) 172s 172s # Request a bad kernel id and check that a JSON 172s # message is returned! 172s bad_id = '111-111-111-111-111' 172s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 172s self.kern_api.get(bad_id) 172s 172s # DELETE kernel with id 172s > r = self.kern_api.shutdown(kid) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-49ad9d9f-dd98-4699-af67-b8e4231f117c.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33447 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44483 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49ad9d9f-dd98-4699-af67-b8e4231f117c, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.990000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c (::1) 0.800000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s 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 172s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.880000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49ad9d9f-dd98-4699-af67-b8e4231f117c 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49ad9d9f-dd98-4699-af67-b8e4231f117c 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c (::1) 15.490000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f1397f27-16db-487d-8ed0-e2c57916bcbe 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f1397f27-16db-487d-8ed0-e2c57916bcbe 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f1397f27-16db-487d-8ed0-e2c57916bcbe (::1) 3.050000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49ad9d9f-dd98-4699-af67-b8e4231f117c 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49ad9d9f-dd98-4699-af67-b8e4231f117c 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49ad9d9f-dd98-4699-af67-b8e4231f117c (::1) 0.950000ms 173s --------------------------- Captured stderr teardown --------------------------- 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 173s import functools 173s File "/usr/lib/python3.13/functools.py", line 18, in 173s from collections import namedtuple 173s File "/usr/lib/python3.13/collections/__init__.py", line 66, in 173s class _OrderedDictKeysView(_collections_abc.KeysView): 173s ...<2 lines>... 173s yield from reversed(self._mapping) 173s File "/usr/lib/python3.13/collections/__init__.py", line 66, in _OrderedDictKeysView 173s class _OrderedDictKeysView(_collections_abc.KeysView): 173s 173s KeyboardInterrupt 173s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 173s 173s self = 173s 173s def test_main_kernel_handler(self): 173s # POST request 173s r = self.kern_api.start() 173s kern1 = r.json() 173s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 173s self.assertEqual(r.status_code, 201) 173s self.assertIsInstance(kern1, dict) 173s 173s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 173s expected_csp = '; '.join([ 173s "frame-ancestors 'self'", 173s 'report-uri ' + report_uri, 173s "default-src 'none'" 173s ]) 173s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 173s 173s # GET request 173s r = self.kern_api.list() 173s self.assertEqual(r.status_code, 200) 173s assert isinstance(r.json(), list) 173s self.assertEqual(r.json()[0]['id'], kern1['id']) 173s self.assertEqual(r.json()[0]['name'], kern1['name']) 173s 173s # create another kernel and check that they both are added to the 173s # list of kernels from a GET request 173s kern2 = self.kern_api.start().json() 173s assert isinstance(kern2, dict) 173s r = self.kern_api.list() 173s kernels = r.json() 173s self.assertEqual(r.status_code, 200) 173s assert isinstance(kernels, list) 173s self.assertEqual(len(kernels), 2) 173s 173s # Interrupt a kernel 173s r = self.kern_api.interrupt(kern2['id']) 173s self.assertEqual(r.status_code, 204) 173s 173s # Restart a kernel 173s > r = self.kern_api.restart(kern2['id']) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 173s return self._req('POST', url_path_join(id, 'restart')) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce/restart 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ----------------------------- Captured stderr call ----------------------------- 173s Could not import runpy module 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 14, in 173s import importlib.machinery # importlib first so we can test #15386 via -m 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1152, in get_code 173s File "", line 781, in _compile_bytecode 173s KeyboardInterrupt 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-dcb9c5f7-e367-4612-bfb4-09c346810634.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36653 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60251 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: dcb9c5f7-e367-4612-bfb4-09c346810634, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.810000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyxv58q6e/runtime/kernel-b3425336-1f46-458e-920a-c1e94f999dce.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37547 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59729 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3425336-1f46-458e-920a-c1e94f999dce, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.330000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b3425336-1f46-458e-920a-c1e94f999dce 173s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce/interrupt (::1) 4.570000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 173s yield maybe_future(km.restart_kernel(kernel_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 173s result = coro.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 173s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 173s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 173s yield self # This tells Task to wait for completion. 173s ^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 173s await ensure_async(kernel.restart_kernel(now=now)) 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 173s await self._async_shutdown_kernel(now=now, restart=True) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce/restart (::1) 9.840000ms referer=None 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.570000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcb9c5f7-e367-4612-bfb4-09c346810634 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcb9c5f7-e367-4612-bfb4-09c346810634 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 173s yield maybe_future(km.shutdown_kernel(kernel_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 173s 173s self = 173s 173s def test_no_kernels(self): 173s """Make sure there are no kernels running at the start""" 173s kernels = self.kern_api.list().json() 173s > self.assertEqual(kernels, []) 173s E AssertionError: Lists differ: [{'id': 'dcb9c5f7-e367-4612-bfb4-09c346810[281 chars]: 0}] != [] 173s E 173s E First list contains 2 additional elements. 173s E First extra element 0: 173s E {'id': 'dcb9c5f7-e367-4612-bfb4-09c346810634', 'name': 'python3', 'last_activity': '2026-01-30T08:08:40.135230Z', 'execution_state': 'starting', 'connections': 0} 173s E 173s E + [] 173s E - [{'connections': 0, 173s E - 'execution_state': 'starting', 173s E - 'id': 'dcb9c5f7-e367-4612-bfb4-09c346810634', 173s E - 'last_activity': '2026-01-30T08:08:40.135230Z', 173s E - 'name': 'python3'}, 173s E - {'connections': 0, 173s E - 'execution_state': 'starting', 173s E - 'id': 'b3425336-1f46-458e-920a-c1e94f999dce', 173s E - 'last_activity': '2026-01-30T08:08:40.158541Z', 173s E - 'name': 'python3'}] 173s 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.450000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dcb9c5f7-e367-4612-bfb4-09c346810634 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcb9c5f7-e367-4612-bfb4-09c346810634 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dcb9c5f7-e367-4612-bfb4-09c346810634 (::1) 0.820000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3425336-1f46-458e-920a-c1e94f999dce 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3425336-1f46-458e-920a-c1e94f999dce 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b3425336-1f46-458e-920a-c1e94f999dce (::1) 1.580000ms 173s ---------------------------- Captured log teardown ----------------------------- 173s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24e943b2-69ea-4f3b-98ab-a54d3f8eb4ab 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dcb9c5f7-e367-4612-bfb4-09c346810634 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49ad9d9f-dd98-4699-af67-b8e4231f117c 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f1397f27-16db-487d-8ed0-e2c57916bcbe 173s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 173s __________________________ SessionAPITest.test_create __________________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log setup ------------------------------ 173s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpor9vjl3n/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpor9vjl3n/etc/jupyter'] for config files 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpor9vjl3n/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpor9vjl3n/config 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpor9vjl3n/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpor9vjl3n/config 173s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpor9vjl3n/notebooks 173s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 173s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 173s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 173s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 173s WARNING NotebookApp:handlers.py:612 Forbidden 173s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.770000ms referer=None 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-75cf2ba8-18a3-4264-9dab-2b291ea5ec5e.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52273 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48245 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 75cf2ba8-18a3-4264-9dab-2b291ea5ec5e, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.490000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3 (::1) 0.860000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cf2ba8-18a3-4264-9dab-2b291ea5ec5e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cf2ba8-18a3-4264-9dab-2b291ea5ec5e 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3 (::1) 10.330000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1152, in get_code 173s File "", line 781, in _compile_bytecode 173s KeyboardInterrupt 173s __________________ SessionAPITest.test_create_console_session __________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/334d668a-836d-43de-bb1c-1328ef859b2c 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-ad24495c-cf9d-4c74-9c1b-9fadaefd0985.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55547 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53943 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: ad24495c-cf9d-4c74-9c1b-9fadaefd0985, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.300000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cf2ba8-18a3-4264-9dab-2b291ea5ec5e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cf2ba8-18a3-4264-9dab-2b291ea5ec5e 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0be0b306-3272-4072-9f71-02bc1a0e79b3 (::1) 1.390000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad24495c-cf9d-4c74-9c1b-9fadaefd0985 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad24495c-cf9d-4c74-9c1b-9fadaefd0985 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/334d668a-836d-43de-bb1c-1328ef859b2c (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/334d668a-836d-43de-bb1c-1328ef859b2c', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 5, in 173s import re 173s File "/usr/lib/python3.13/re/__init__.py", line 125, in 173s import enum 173s File "/usr/lib/python3.13/enum.py", line 1109, in 173s class Enum(metaclass=EnumType): 173s ...<230 lines>... 173s return self._value_ 173s File "/usr/lib/python3.13/enum.py", line 578, in __new__ 173s classdict.update(enum_class.__dict__) 173s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 173s KeyboardInterrupt 173s ____________________ SessionAPITest.test_create_deprecated _____________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e5ddbd09-25fe-4415-9c92-6beb786cf10c 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-d4adea03-d73e-41f1-8860-a5236d7c7037.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54997 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50871 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4adea03-d73e-41f1-8860-a5236d7c7037, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.390000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.370000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad24495c-cf9d-4c74-9c1b-9fadaefd0985 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad24495c-cf9d-4c74-9c1b-9fadaefd0985 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/334d668a-836d-43de-bb1c-1328ef859b2c (::1) 2.830000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4adea03-d73e-41f1-8860-a5236d7c7037 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4adea03-d73e-41f1-8860-a5236d7c7037 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e5ddbd09-25fe-4415-9c92-6beb786cf10c (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e5ddbd09-25fe-4415-9c92-6beb786cf10c', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e5ddbd09-25fe-4415-9c92-6beb786cf10c (::1) 13.850000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 3, in 173s import contextlib 173s File "/usr/lib/python3.13/contextlib.py", line 129, in 173s class _GeneratorContextManager( 173s ...<70 lines>... 173s self.gen.close() 173s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 173s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 173s KeyboardInterrupt 173s ___________________ SessionAPITest.test_create_file_session ____________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-d61f45c1-f2a0-45dc-988c-0d11cd2bd93e.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33147 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33149 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: d61f45c1-f2a0-45dc-988c-0d11cd2bd93e, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.580000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.040000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4adea03-d73e-41f1-8860-a5236d7c7037 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4adea03-d73e-41f1-8860-a5236d7c7037 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e5ddbd09-25fe-4415-9c92-6beb786cf10c (::1) 1.520000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220 (::1) 10.720000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 173s import functools 173s File "/usr/lib/python3.13/functools.py", line 18, in 173s from collections import namedtuple 173s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 173s from keyword import iskeyword as _iskeyword 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1115, in get_code 173s File "", line 1214, in get_data 173s KeyboardInterrupt 173s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 173s 173s self = 173s 173s def test_create_with_kernel_id(self): 173s # create a new kernel 173s r = self.request('POST', 'api/kernels') 173s r.raise_for_status() 173s kernel = r.json() 173s 173s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 173s self.assertEqual(resp.status_code, 201) 173s newsession = resp.json() 173s self.assertIn('id', newsession) 173s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 173s self.assertEqual(newsession['kernel']['id'], kernel['id']) 173s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 173s 173s sessions = self.sess_api.list().json() 173s > self.assertEqual(sessions, [newsession]) 173s E AssertionError: Lists differ: [{'id': '7425f444-6439-43f9-b1e7-ce5d79efa220', 'p[553 chars]ne}}] != [{'id': '12ca5b4c-b424-41c4-834e-cef7fe27020c', 'p[279 chars]ne}}] 173s E 173s E First differing element 0: 173s E {'id': '7425f444-6439-43f9-b1e7-ce5d79efa220', 'p[218 chars]: 0}} 173s E {'id': '12ca5b4c-b424-41c4-834e-cef7fe27020c', 'p[278 chars]one}} 173s E 173s E First list contains 1 additional elements. 173s E First extra element 1: 173s E {'id': '12ca5b4c-b424-41c4-834e-cef7fe27020c', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8512b9b2-a688-4c91-9d91-61b4a360e78f', 'name': 'python3', 'last_activity': '2026-01-30T08:08:50.681705Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 173s E 173s E Diff is 830 characters long. Set self.maxDiff to None to see it. 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-8512b9b2-a688-4c91-9d91-61b4a360e78f.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45725 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39915 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8512b9b2-a688-4c91-9d91-61b4a360e78f, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.350000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.130000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.740000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d61f45c1-f2a0-45dc-988c-0d11cd2bd93e 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7425f444-6439-43f9-b1e7-ce5d79efa220 (::1) 2.910000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8512b9b2-a688-4c91-9d91-61b4a360e78f 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8512b9b2-a688-4c91-9d91-61b4a360e78f 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12ca5b4c-b424-41c4-834e-cef7fe27020c (::1) 8.350000ms referer=None 173s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 173s 173s self = 173s 173s def test_modify_kernel_id(self): 173s before = self.sess_api.create('foo/nb1.ipynb').json() 173s sid = before['id'] 173s 173s # create a new kernel 173s r = self.request('POST', 'api/kernels') 173s r.raise_for_status() 173s kernel = r.json() 173s 173s # Attach our session to the existing kernel 173s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 173s return self._req('PATCH', id, body) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 173s from ipykernel import kernelapp as app 173s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 173s from .connect import * # noqa: F403 173s ^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 173s from subprocess import PIPE, Popen 173s File "/usr/lib/python3.13/subprocess.py", line 476, in 173s class CompletedProcess(object): 173s ...<32 lines>... 173s self.stderr) 173s File "/usr/lib/python3.13/subprocess.py", line 476, in CompletedProcess 173s class CompletedProcess(object): 173s 173s KeyboardInterrupt 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52205 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59695 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.150000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-654bc3c6-9311-40e8-a548-888025241ec2.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58527 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49765 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 654bc3c6-9311-40e8-a548-888025241ec2, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.710000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 173s km.shutdown_kernel(before['kernel']['id']) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 19.920000ms referer=None 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 654bc3c6-9311-40e8-a548-888025241ec2 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 654bc3c6-9311-40e8-a548-888025241ec2 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 11.120000ms referer=None 173s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 173s 173s self = 173s 173s def test_modify_kernel_name(self): 173s before = self.sess_api.create('foo/nb1.ipynb').json() 173s sid = before['id'] 173s 173s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 173s self.assertEqual(after['id'], sid) 173s self.assertEqual(after['path'], before['path']) 173s self.assertEqual(after['type'], before['type']) 173s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 173s 173s # check kernel list, to be sure previous kernel was cleaned up 173s r = self.request('GET', 'api/kernels') 173s r.raise_for_status() 173s kernel_list = r.json() 173s after['kernel'].pop('last_activity') 173s [ k.pop('last_activity') for k in kernel_list ] 173s > self.assertEqual(kernel_list, [after['kernel']]) 173s E AssertionError: Lists differ: [{'id': '605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3', 'n[177 chars]: 0}] != [{'id': '290ce378-c114-4b3b-a3dd-957303771f0f', 'n[61 chars]: 0}] 173s E 173s E First differing element 0: 173s E {'id': '605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3', 'n[60 chars]': 0} 173s E {'id': '290ce378-c114-4b3b-a3dd-957303771f0f', 'n[60 chars]': 0} 173s E 173s E First list contains 1 additional elements. 173s E First extra element 1: 173s E {'id': '290ce378-c114-4b3b-a3dd-957303771f0f', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 173s E 173s E [{'connections': 0, 173s E - 'execution_state': 'starting', 173s E - 'id': '605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3', 173s E - 'name': 'python3'}, 173s E - {'connections': 0, 173s E 'execution_state': 'starting', 173s E 'id': '290ce378-c114-4b3b-a3dd-957303771f0f', 173s E 'name': 'python3'}] 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.770000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-290ce378-c114-4b3b-a3dd-957303771f0f.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43641 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52843 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 290ce378-c114-4b3b-a3dd-957303771f0f, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 654bc3c6-9311-40e8-a548-888025241ec2 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 654bc3c6-9311-40e8-a548-888025241ec2 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 20.870000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.660000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 290ce378-c114-4b3b-a3dd-957303771f0f 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 290ce378-c114-4b3b-a3dd-957303771f0f 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a3d7b10-8fd5-4f3c-af7e-b93dac887425', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s __________________ SessionAPITest.test_modify_path_deprecated __________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-b3b0e894-8689-4d33-8f77-e429ec6e263f.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41429 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47573 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3b0e894-8689-4d33-8f77-e429ec6e263f, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.360000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05 (::1) 2.040000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.270000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3b0e894-8689-4d33-8f77-e429ec6e263f 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3b0e894-8689-4d33-8f77-e429ec6e263f 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05 (::1) 7.180000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 5, in 173s import re 173s File "/usr/lib/python3.13/re/__init__.py", line 125, in 173s import enum 173s File "/usr/lib/python3.13/enum.py", line 479, in 173s class EnumType(type): 173s ...<624 lines>... 173s cls._member_map_[name] = member 173s File "/usr/lib/python3.13/enum.py", line 1014, in EnumType 173s @classmethod 173s ^^^^^^^^^^^ 173s KeyboardInterrupt 173s _______________________ SessionAPITest.test_modify_type ________________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2c663d3a-b31e-4594-b0e1-7e7d3ec8e107 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpor9vjl3n/runtime/kernel-8b20bc96-69d1-4c9f-bf8b-99984fc84fa2.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34935 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54409 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8b20bc96-69d1-4c9f-bf8b-99984fc84fa2, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpor9vjl3n/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.820000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2c663d3a-b31e-4594-b0e1-7e7d3ec8e107 (::1) 1.090000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.140000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3b0e894-8689-4d33-8f77-e429ec6e263f 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3b0e894-8689-4d33-8f77-e429ec6e263f 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7d19c5ef-4fcf-4fa2-ac22-a7c7ece43f05 (::1) 2.510000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8b20bc96-69d1-4c9f-bf8b-99984fc84fa2 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b20bc96-69d1-4c9f-bf8b-99984fc84fa2 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2c663d3a-b31e-4594-b0e1-7e7d3ec8e107 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2c663d3a-b31e-4594-b0e1-7e7d3ec8e107', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 173s yielded = self.gen.send(value) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 173s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 173s stopper = ensure_async(km.shutdown_kernel(now, restart)) 173s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 173s return _runner_map[name].run(inner) 173s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 173s return fut.result(None) 173s ~~~~~~~~~~^^^^^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 173s return self.__get_result() 173s ~~~~~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 173s raise self._exception 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 5, in 173s import re 173s File "/usr/lib/python3.13/re/__init__.py", line 126, in 173s from . import _compiler, _parser 173s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 173s from . import _parser 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1152, in get_code 173s File "", line 781, in _compile_bytecode 173s KeyboardInterrupt 173s ---------------------------- Captured log teardown ----------------------------- 173s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8b20bc96-69d1-4c9f-bf8b-99984fc84fa2 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 605eb30b-9c2e-4f03-afa3-63d2b9f6a9b3 173s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 173s _______________________ AsyncSessionAPITest.test_create ________________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7c3d1422-0e88-47cd-aab2-3228c813d178 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log setup ------------------------------ 173s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmps1npbeut/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmps1npbeut/etc/jupyter'] for config files 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmps1npbeut/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmps1npbeut/config 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmps1npbeut/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 173s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmps1npbeut/config 173s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmps1npbeut/notebooks 173s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 173s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 173s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 173s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 173s WARNING NotebookApp:handlers.py:612 Forbidden 173s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.880000ms referer=None 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.280000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45589 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46659 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.390000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.120000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/7c3d1422-0e88-47cd-aab2-3228c813d178 (::1) 2.470000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7c3d1422-0e88-47cd-aab2-3228c813d178 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7c3d1422-0e88-47cd-aab2-3228c813d178', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 5, in 173s import re 173s File "/usr/lib/python3.13/re/__init__.py", line 126, in 173s from . import _compiler, _parser 173s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 173s from . import _parser 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1115, in get_code 173s File "", line 1215, in get_data 173s KeyboardInterrupt 173s _______________ AsyncSessionAPITest.test_create_console_session ________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/79546922-0f36-446a-b1a0-38fd87cb2bb6 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-4f99a7f6-20f1-4060-a8ba-9cbb497897f5.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59647 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38219 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4f99a7f6-20f1-4060-a8ba-9cbb497897f5, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.110000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.480000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7c3d1422-0e88-47cd-aab2-3228c813d178 (::1) 2.720000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4f99a7f6-20f1-4060-a8ba-9cbb497897f5 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f99a7f6-20f1-4060-a8ba-9cbb497897f5 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/79546922-0f36-446a-b1a0-38fd87cb2bb6 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/79546922-0f36-446a-b1a0-38fd87cb2bb6', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/79546922-0f36-446a-b1a0-38fd87cb2bb6 (::1) 7.010000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 173s import functools 173s File "/usr/lib/python3.13/functools.py", line 18, in 173s from collections import namedtuple 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 935, in _load_unlocked 173s File "", line 1019, in exec_module 173s File "", line 1152, in get_code 173s File "", line 781, in _compile_bytecode 173s KeyboardInterrupt 173s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b1fbf98-2d1a-42ab-9b7e-a7ac893e72df 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-1da5a7d5-59d2-468b-a76b-868c78f6dfa1.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59579 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42553 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1da5a7d5-59d2-468b-a76b-868c78f6dfa1, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.720000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.440000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4f99a7f6-20f1-4060-a8ba-9cbb497897f5 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f99a7f6-20f1-4060-a8ba-9cbb497897f5 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/79546922-0f36-446a-b1a0-38fd87cb2bb6 (::1) 2.490000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1da5a7d5-59d2-468b-a76b-868c78f6dfa1 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1da5a7d5-59d2-468b-a76b-868c78f6dfa1 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b1fbf98-2d1a-42ab-9b7e-a7ac893e72df (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b1fbf98-2d1a-42ab-9b7e-a7ac893e72df', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7b1fbf98-2d1a-42ab-9b7e-a7ac893e72df (::1) 6.880000ms referer=None 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 173s import functools 173s File "/usr/lib/python3.13/functools.py", line 18, in 173s from collections import namedtuple 173s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 173s from _collections import deque 173s File "", line 1357, in _find_and_load 173s File "", line 421, in __exit__ 173s File "", line 378, in release 173s KeyboardInterrupt 173s _________________ AsyncSessionAPITest.test_create_file_session _________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d70539b3-0aea-4af4-abb0-0222db3c209e 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-75352048-47d2-4cc5-88fd-b634d782c65b.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36315 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49103 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 75352048-47d2-4cc5-88fd-b634d782c65b, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.540000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.230000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1da5a7d5-59d2-468b-a76b-868c78f6dfa1 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1da5a7d5-59d2-468b-a76b-868c78f6dfa1 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7b1fbf98-2d1a-42ab-9b7e-a7ac893e72df (::1) 2.650000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75352048-47d2-4cc5-88fd-b634d782c65b 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75352048-47d2-4cc5-88fd-b634d782c65b 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d70539b3-0aea-4af4-abb0-0222db3c209e (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d70539b3-0aea-4af4-abb0-0222db3c209e', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 173s import functools 173s File "/usr/lib/python3.13/functools.py", line 18, in 173s from collections import namedtuple 173s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 173s from _collections import deque 173s File "", line 1360, in _find_and_load 173s File "", line 1331, in _find_and_load_unlocked 173s File "", line 946, in _load_unlocked 173s KeyboardInterrupt 173s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 173s 173s self = 173s 173s def test_create_with_kernel_id(self): 173s # create a new kernel 173s r = self.request('POST', 'api/kernels') 173s r.raise_for_status() 173s kernel = r.json() 173s 173s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 173s self.assertEqual(resp.status_code, 201) 173s newsession = resp.json() 173s self.assertIn('id', newsession) 173s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 173s self.assertEqual(newsession['kernel']['id'], kernel['id']) 173s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 173s 173s sessions = self.sess_api.list().json() 173s > self.assertEqual(sessions, [newsession]) 173s E AssertionError: Lists differ: [{'id': 'd70539b3-0aea-4af4-abb0-0222db3c209e', 'pa[552 chars]ne}}] != [{'id': 'd3c6f970-7436-442f-9807-e5c802b77a3a', 'pa[278 chars]ne}}] 173s E 173s E First differing element 0: 173s E {'id': 'd70539b3-0aea-4af4-abb0-0222db3c209e', 'pa[217 chars]: 0}} 173s E {'id': 'd3c6f970-7436-442f-9807-e5c802b77a3a', 'pa[277 chars]one}} 173s E 173s E First list contains 1 additional elements. 173s E First extra element 1: 173s E {'id': 'd3c6f970-7436-442f-9807-e5c802b77a3a', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a0dc6f27-4078-4243-a60b-e177e8b6e36a', 'name': 'python3', 'last_activity': '2026-01-30T08:08:51.639420Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 173s E 173s E Diff is 830 characters long. Set self.maxDiff to None to see it. 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-a0dc6f27-4078-4243-a60b-e177e8b6e36a.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51431 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47199 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0dc6f27-4078-4243-a60b-e177e8b6e36a, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.610000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75352048-47d2-4cc5-88fd-b634d782c65b 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75352048-47d2-4cc5-88fd-b634d782c65b 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d70539b3-0aea-4af4-abb0-0222db3c209e (::1) 2.660000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0dc6f27-4078-4243-a60b-e177e8b6e36a 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc6f27-4078-4243-a60b-e177e8b6e36a 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d3c6f970-7436-442f-9807-e5c802b77a3a (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d3c6f970-7436-442f-9807-e5c802b77a3a', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 173s gc.collect() 173s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 173s ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 173s 173s self = 173s 173s def test_modify_kernel_id(self): 173s before = self.sess_api.create('foo/nb1.ipynb').json() 173s sid = before['id'] 173s 173s # create a new kernel 173s r = self.request('POST', 'api/kernels') 173s r.raise_for_status() 173s kernel = r.json() 173s 173s # Attach our session to the existing kernel 173s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 173s return self._req('PATCH', id, body) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 173s from ipykernel import kernelapp as app 173s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 173s from .connect import * # noqa: F403 173s ^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 173s from subprocess import PIPE, Popen 173s File "/usr/lib/python3.13/subprocess.py", line 46, in 173s import locale 173s File "/usr/lib/python3.13/locale.py", line 47, in 173s from _locale import * 173s KeyboardInterrupt 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-f97d550d-0f80-4c23-a5e6-1b04dba7e1c9.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54677 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56299 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: f97d550d-0f80-4c23-a5e6-1b04dba7e1c9, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.190000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46907 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51475 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.480000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f97d550d-0f80-4c23-a5e6-1b04dba7e1c9 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f97d550d-0f80-4c23-a5e6-1b04dba7e1c9 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 173s yield maybe_future( 173s km.shutdown_kernel(before['kernel']['id']) 173s ) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 16.310000ms referer=None 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 7.360000ms referer=None 173s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 173s 173s self = 173s 173s def test_modify_kernel_name(self): 173s before = self.sess_api.create('foo/nb1.ipynb').json() 173s sid = before['id'] 173s 173s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 173s self.assertEqual(after['id'], sid) 173s self.assertEqual(after['path'], before['path']) 173s self.assertEqual(after['type'], before['type']) 173s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 173s 173s # check kernel list, to be sure previous kernel was cleaned up 173s r = self.request('GET', 'api/kernels') 173s r.raise_for_status() 173s kernel_list = r.json() 173s after['kernel'].pop('last_activity') 173s [ k.pop('last_activity') for k in kernel_list ] 173s > self.assertEqual(kernel_list, [after['kernel']]) 173s E AssertionError: Lists differ: [{'id': 'f97d550d-0f80-4c23-a5e6-1b04dba7e1c9', 'n[177 chars]: 0}] != [{'id': '358a3e06-3709-4f99-8c05-506b683e7e8a', 'n[61 chars]: 0}] 173s E 173s E First differing element 0: 173s E {'id': 'f97d550d-0f80-4c23-a5e6-1b04dba7e1c9', 'n[60 chars]': 0} 173s E {'id': '358a3e06-3709-4f99-8c05-506b683e7e8a', 'n[60 chars]': 0} 173s E 173s E First list contains 1 additional elements. 173s E First extra element 1: 173s E {'id': '358a3e06-3709-4f99-8c05-506b683e7e8a', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 173s E 173s E [{'connections': 0, 173s E - 'execution_state': 'starting', 173s E - 'id': 'f97d550d-0f80-4c23-a5e6-1b04dba7e1c9', 173s E - 'name': 'python3'}, 173s E - {'connections': 0, 173s E 'execution_state': 'starting', 173s E 'id': '358a3e06-3709-4f99-8c05-506b683e7e8a', 173s E 'name': 'python3'}] 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-358a3e06-3709-4f99-8c05-506b683e7e8a.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57507 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53429 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 358a3e06-3709-4f99-8c05-506b683e7e8a, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 16.180000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.870000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 358a3e06-3709-4f99-8c05-506b683e7e8a 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 358a3e06-3709-4f99-8c05-506b683e7e8a 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s ERROR NotebookApp:log.py:55 { 173s "Host": "localhost:12341", 173s "Accept": "*/*", 173s "User-Agent": "python-requests/2.32.5" 173s } 173s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8d844d01-81c4-440a-b473-2729505726ce (::1) 7.800000ms referer=None 173s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aee62da5-e0c5-425f-a7f2-b630ec7bb237 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49095 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45377 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.660000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/aee62da5-e0c5-425f-a7f2-b630ec7bb237 (::1) 3.320000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.460000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aee62da5-e0c5-425f-a7f2-b630ec7bb237 (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aee62da5-e0c5-425f-a7f2-b630ec7bb237', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s Traceback (most recent call last): 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 173s from ._abc import * 173s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 173s from glob import _Globber, _no_recurse_symlinks 173s File "/usr/lib/python3.13/glob.py", line 5, in 173s import re 173s File "/usr/lib/python3.13/re/__init__.py", line 125, in 173s import enum 173s File "/usr/lib/python3.13/enum.py", line 1349, in 173s class IntEnum(int, ReprEnum): 173s ...<2 lines>... 173s """ 173s File "/usr/lib/python3.13/enum.py", line 610, in __new__ 173s if found_method in (data_type_method, object_method): 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s KeyboardInterrupt 173s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 173s 173s @self.addCleanup 173s def cleanup_sessions(): 173s for session in self.sess_api.list().json(): 173s > self.sess_api.delete(session['id']) 173s 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 173s return self._req('DELETE', id) 173s ^^^^^^^^^^^^^^^^^^^^^^^ 173s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 173s response.raise_for_status() 173s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 173s 173s self = 173s 173s def raise_for_status(self): 173s """Raises :class:`HTTPError`, if one occurred.""" 173s 173s http_error_msg = "" 173s if isinstance(self.reason, bytes): 173s # We attempt to decode utf-8 first because some servers 173s # choose to localize their reason strings. If the string 173s # isn't utf-8, we fall back to iso-8859-1 for all other 173s # encodings. (See PR #3538) 173s try: 173s reason = self.reason.decode("utf-8") 173s except UnicodeDecodeError: 173s reason = self.reason.decode("iso-8859-1") 173s else: 173s reason = self.reason 173s 173s if 400 <= self.status_code < 500: 173s http_error_msg = ( 173s f"{self.status_code} Client Error: {reason} for url: {self.url}" 173s ) 173s 173s elif 500 <= self.status_code < 600: 173s http_error_msg = ( 173s f"{self.status_code} Server Error: {reason} for url: {self.url}" 173s ) 173s 173s if http_error_msg: 173s > raise HTTPError(http_error_msg, response=self) 173s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5669281-d578-4c63-84b3-aecd08b5557d 173s 173s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 173s ----------------------------- Captured stderr call ----------------------------- 173s Traceback (most recent call last): 173s ------------------------------ Captured log call ------------------------------- 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 173s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmps1npbeut/runtime/kernel-605e4764-2e38-4fc7-91a8-cb284aea3a5e.json'] 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41239 173s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35867 173s INFO NotebookApp:kernelmanager.py:179 Kernel started: 605e4764-2e38-4fc7-91a8-cb284aea3a5e, name: python3 173s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmps1npbeut/notebooks/foo'} 173s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.560000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d5669281-d578-4c63-84b3-aecd08b5557d (::1) 2.790000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.800000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8 173s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/aee62da5-e0c5-425f-a7f2-b630ec7bb237 (::1) 1.060000ms 173s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 173s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 605e4764-2e38-4fc7-91a8-cb284aea3a5e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 605e4764-2e38-4fc7-91a8-cb284aea3a5e 173s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5669281-d578-4c63-84b3-aecd08b5557d (::1) 173s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5669281-d578-4c63-84b3-aecd08b5557d', version='HTTP/1.1', remote_ip='::1') 173s Traceback (most recent call last): 173s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 173s result = await result 173s ^^^^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 173s future.result() 173s ~~~~~~~~~~~~~^^ 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 173s yield maybe_future(sm.delete_session(session_id)) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 173s yielded = self.gen.throw(exc) 173s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 173s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 173s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 173s value = future.result() 173s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 173s raise self._exception.with_traceback(self._exception_tb) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 173s result = coro.send(None) 173s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 173s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 173s raise km.ready.exception() # type: ignore[misc] 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 173s await kernel_awaitable 173s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 173s result = await obj 173s ^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 173s raise e 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 173s out = await method(self, *args, **kwargs) 173s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 173s await self._async_finish_shutdown(restart=restart) 173s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 173s await asyncio.wait_for( 173s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 173s ) 173s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 173s async with timeouts.timeout(timeout): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^ 173s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 173s raise RuntimeError("Timeout should be used inside a task") 173s RuntimeError: Timeout should be used inside a task 173s WARNING NotebookApp:handlers.py:612 Unhandled error 173s --------------------------- Captured stderr teardown --------------------------- 173s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 173s return _run_code(code, main_globals, None, 173s "__main__", mod_spec) 173s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 173s exec(code, run_globals) 173s ~~~~^^^^^^^^^^^^^^^^^^^ 173s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 173s from pathlib import Path 173s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 173s from ._local import * 173s File "", line 1357, in _find_and_load 173s File "", line 418, in __enter__ 173s File "", line 311, in acquire 173s File "", line 170, in __enter__ 173s File "", line 132, in setdefault 173s File "", line 80, in __init__ 173s KeyboardInterrupt 173s ---------------------------- Captured log teardown ----------------------------- 173s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78eae7bc-3ba1-49a3-a2e0-1df5e80c77b8 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 605e4764-2e38-4fc7-91a8-cb284aea3a5e 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75352048-47d2-4cc5-88fd-b634d782c65b 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 358a3e06-3709-4f99-8c05-506b683e7e8a 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4f99a7f6-20f1-4060-a8ba-9cbb497897f5 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0dc6f27-4078-4243-a60b-e177e8b6e36a 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cbe0d74f-330c-4d1f-b1a9-e5babcbae2a7 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5a9a3ff6-bd10-42ad-ae21-6bb6bcaa5418 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f97d550d-0f80-4c23-a5e6-1b04dba7e1c9 173s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1da5a7d5-59d2-468b-a76b-868c78f6dfa1 173s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 173s =============================== warnings summary =============================== 173s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 173s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 173s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 173s return LooseVersion(v) >= LooseVersion(check) 173s 173s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 173s auth/tests/test_login.py: 2 warnings 173s bundler/tests/test_bundler_api.py: 2 warnings 173s services/api/tests/test_api.py: 4 warnings 173s services/config/tests/test_config_api.py: 7 warnings 173s services/contents/tests/test_contents_api.py: 318 warnings 173s services/kernels/tests/test_kernels_api.py: 106 warnings 173s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 173s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 173s services/sessions/tests/test_sessionmanager.py: 9 warnings 173s services/sessions/tests/test_sessions_api.py: 128 warnings 173s terminal/tests/test_terminals_api.py: 50 warnings 173s tests/test_files.py: 2 warnings 173s tests/test_gateway.py: 21 warnings 173s tests/test_notebookapp.py: 8 warnings 173s tests/test_paths.py: 2 warnings 173s tree/tests/test_tree_handler.py: 2 warnings 173s /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). 173s dt = unaware(*args, **kwargs) 173s 173s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 173s /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 173s pytestmark = pytest.mark.integration_tests 173s 173s auth/tests/test_login.py: 3 warnings 173s bundler/tests/test_bundler_api.py: 3 warnings 173s services/api/tests/test_api.py: 3 warnings 173s services/config/tests/test_config_api.py: 3 warnings 173s services/contents/tests/test_contents_api.py: 6 warnings 173s services/kernels/tests/test_kernels_api.py: 12 warnings 173s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 173s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 173s services/sessions/tests/test_sessions_api.py: 6 warnings 173s terminal/tests/test_terminals_api.py: 6 warnings 173s tests/test_files.py: 3 warnings 173s tests/test_gateway.py: 3 warnings 173s tests/test_notebookapp.py: 11 warnings 173s tests/test_paths.py: 3 warnings 173s tree/tests/test_tree_handler.py: 3 warnings 173s /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 173s policy = events.get_event_loop_policy() 173s 173s auth/tests/test_login.py: 9 warnings 173s bundler/tests/test_bundler_api.py: 9 warnings 173s services/api/tests/test_api.py: 9 warnings 173s services/config/tests/test_config_api.py: 9 warnings 173s services/contents/tests/test_contents_api.py: 18 warnings 173s services/kernels/tests/test_kernels_api.py: 47 warnings 173s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 173s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 173s services/sessions/tests/test_sessionmanager.py: 18 warnings 173s services/sessions/tests/test_sessions_api.py: 19 warnings 173s terminal/tests/test_terminals_api.py: 18 warnings 173s tests/test_files.py: 9 warnings 173s tests/test_gateway.py: 9 warnings 173s tests/test_notebookapp.py: 28 warnings 173s tests/test_paths.py: 9 warnings 173s tree/tests/test_tree_handler.py: 9 warnings 173s /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 173s loop = events.get_event_loop_policy().get_event_loop() 173s 173s bundler/tests/test_bundler_api.py: 6 warnings 173s services/api/tests/test_api.py: 6 warnings 173s services/contents/tests/test_contents_api.py: 806 warnings 173s services/contents/tests/test_largefilemanager.py: 42 warnings 173s services/contents/tests/test_manager.py: 526 warnings 173s tests/test_files.py: 8 warnings 173s tree/tests/test_tree_handler.py: 6 warnings 173s /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). 173s dt = unaware(*args, **kwargs) 173s 173s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 173s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 173s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 173s loop.make_current() 173s 173s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 173s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 173s /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/tmpvjwmleco/data/kernels/sample 2 173s d = self.find_kernel_specs() 173s 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 173s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 173s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3493) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 173s pid, fd = os.forkpty() 173s 173s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 173s /usr/lib/python3/dist-packages/jinja2/nodes.py:143: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 173s for name, arg in zip(self.fields, fields): 173s Enable tracemalloc to get traceback where the object was allocated. 173s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 173s 173s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 173s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 173s /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). 173s dt = datetime.utcnow().isoformat() + 'Z' 173s 173s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 173s =========================== short test summary info ============================ 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 173s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 173s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 173s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 173s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 173s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 173s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 173s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 173s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 173s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 173s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 173s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 173s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 173s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 173s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 173s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 173s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 173s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 173s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 173s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 173s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 173s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 173s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2399 warnings, 8 errors in 31.85s = 174s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 174s *** 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 177s ============================= test session starts ============================== 177s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 177s rootdir: /tmp/autopkgtest.crwF8L/autopkgtest_tmp 177s plugins: typeguard-4.4.4 177s collected 330 items / 303 deselected / 27 selected 177s run-last-failure: rerun previous 27 failures 177s 179s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 181s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 181s 181s ==================================== ERRORS ==================================== 181s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 181s 181s self = 181s 181s def tearDown(self): 181s for k in self.kern_api.list().json(): 181s > self.kern_api.shutdown(k['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 181s from ._local import * 181s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 181s class PureWindowsPath(PurePath): 181s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 181s import ntpath 181s File "/usr/lib/python3.13/ntpath.py", line 472, in 181s from nt import _path_normpath as normpath 181s File "", line 1360, in _find_and_load 181s File "", line 1322, in _find_and_load_unlocked 181s File "", line 1262, in _find_spec 181s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 181s method_name = 'spec_for_{fullname}'.format(**locals()) 181s KeyboardInterrupt 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-24518e32-a566-4428-91f6-436ae8b0e5e7.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49365 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52921 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24518e32-a566-4428-91f6-436ae8b0e5e7, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.040000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-dd32efc1-b4fa-4fc7-b933-cf5c51785943.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49551 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50839 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: dd32efc1-b4fa-4fc7-b933-cf5c51785943, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.350000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dd32efc1-b4fa-4fc7-b933-cf5c51785943 181s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943/interrupt (::1) 3.090000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 181s yield maybe_future(km.restart_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 181s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 181s await ensure_async(kernel.restart_kernel(now=now)) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 181s await self._async_shutdown_kernel(now=now, restart=True) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943/restart (::1) 9.240000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.020000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24518e32-a566-4428-91f6-436ae8b0e5e7 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24518e32-a566-4428-91f6-436ae8b0e5e7 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 181s yielded = ctx_run(next, result) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 (::1) 10.890000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 181s from ipykernel import kernelapp as app 181s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 181s from .connect import * # noqa: F403 181s ^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 181s import jupyter_client 181s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 181s from .asynchronous import AsyncKernelClient 181s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 181s from .client import AsyncKernelClient # noqa 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 181s import zmq.asyncio 181s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 181s from zmq import backend 181s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 181s _ns = select_backend(first) 181s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 181s mod = import_module(name) 181s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 181s return _bootstrap._gcd_import(name[level:], package, level) 181s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 181s from . import _zmq 181s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 181s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 74, in 181s class ContextOption(IntEnum): 181s ...<14 lines>... 181s THREAD_NAME_PREFIX = 9 181s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 181s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 181s File "/usr/lib/python3.13/enum.py", line 251, in __set_name__ 181s def __set_name__(self, enum_class, member_name): 181s 181s KeyboardInterrupt 181s Error calling __set_name__ on '_proto_member' instance 'IO_THREADS' in 'ContextOption' 181s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 181s 181s self = 181s 181s def tearDown(self): 181s for k in self.kern_api.list().json(): 181s > self.kern_api.shutdown(k['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Could not import runpy module 181s Traceback (most recent call last): 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1115, in get_code 181s File "", line 1215, in get_data 181s KeyboardInterrupt 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-e830f92f-5817-476a-b919-462a03f27d87.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39113 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50437 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: e830f92f-5817-476a-b919-462a03f27d87, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.260000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-7c896a8d-c659-4963-8662-bf70abbb44f9.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53925 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54447 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c896a8d-c659-4963-8662-bf70abbb44f9, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.120000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7c896a8d-c659-4963-8662-bf70abbb44f9 181s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9/interrupt (::1) 0.870000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 181s yield maybe_future(km.restart_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 181s result = coro.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 181s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 181s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 181s yield self # This tells Task to wait for completion. 181s ^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 181s await ensure_async(kernel.restart_kernel(now=now)) 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 181s await self._async_shutdown_kernel(now=now, restart=True) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9/restart (::1) 9.390000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e830f92f-5817-476a-b919-462a03f27d87 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e830f92f-5817-476a-b919-462a03f27d87 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 181s from ipykernel import kernelapp as app 181s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 181s from .connect import * # noqa: F403 181s ^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 181s import jupyter_client 181s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 181s from .asynchronous import AsyncKernelClient 181s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 181s from .client import AsyncKernelClient # noqa 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 181s import zmq.asyncio 181s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 181s import asyncio 181s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 181s from .base_events import * 181s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 181s import concurrent.futures 181s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 181s from concurrent.futures._base import (FIRST_COMPLETED, 181s ...<9 lines>... 181s as_completed) 181s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 181s import logging 181s File "/usr/lib/python3.13/logging/__init__.py", line 26, in 181s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-94da3112-7eef-4a7b-ac24-f6478c136ec6.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52353 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56915 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94da3112-7eef-4a7b-ac24-f6478c136ec6, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.020000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.600000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b (::1) 2.820000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 181s from ipykernel import kernelapp as app 181s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 181s from .connect import * # noqa: F403 181s ^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 181s import json 181s File "/usr/lib/python3.13/json/__init__.py", line 106, in 181s from .decoder import JSONDecoder, JSONDecodeError 181s File "/usr/lib/python3.13/json/decoder.py", line 5, in 181s from json import scanner 181s File "/usr/lib/python3.13/json/scanner.py", line 11, in 181s NUMBER_RE = re.compile( 181s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 181s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 181s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 181s return _compile(pattern, flags) 181s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 181s p = _compiler.compile(pattern, flags) 181s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 181s p = _parser.parse(p, flags) 181s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 181s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 181s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 181s itemsappend(_parse(source, state, verbose, nested + 1, 181s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s not nested and not items)) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 181s p = _parse_sub(source, state, sub_verbose, nested + 1) 181s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 181s itemsappend(_parse(source, state, verbose, nested + 1, 181s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s not nested and not items)) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3.13/re/_parser.py", line 682, in _parse 181s item = subpattern[-1:] 181s ~~~~~~~~~~^^^^^ 181s File "/usr/lib/python3.13/re/_parser.py", line 169, in __getitem__ 181s return SubPattern(self.state, self.data[index]) 181s File "/usr/lib/python3.13/re/_parser.py", line 112, in __init__ 181s def __init__(self, state, data=None): 181s 181s KeyboardInterrupt 181s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-ca8724e8-d249-419d-af6a-3be1899be4cd.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36175 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45197 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: ca8724e8-d249-419d-af6a-3be1899be4cd, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.860000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.710000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.650000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d (::1) 2.580000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca8724e8-d249-419d-af6a-3be1899be4cd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca8724e8-d249-419d-af6a-3be1899be4cd 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 8.500000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 181s from ipykernel import kernelapp as app 181s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 181s from ._version import ( 181s ...<4 lines>... 181s ) 181s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 13, in 181s parts: list[object] = [int(match[part]) for part in ["major", "minor", "patch"]] 181s ~~~^^^^^^^^^^^^^ 181s KeyboardInterrupt 181s =================================== FAILURES =================================== 181s ______________________ KernelAPITest.test_default_kernel _______________________ 181s 181s self = 181s 181s def tearDown(self): 181s for k in self.kern_api.list().json(): 181s > self.kern_api.shutdown(k['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/73fa2b97-19f5-4e79-93e3-00ba5a5932c6 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log setup ------------------------------ 181s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmphfh9g8vc/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmphfh9g8vc/etc/jupyter'] for config files 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphfh9g8vc/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmphfh9g8vc/config 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphfh9g8vc/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmphfh9g8vc/config 181s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmphfh9g8vc/notebooks 181s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 181s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 181s WARNING NotebookApp:handlers.py:612 Forbidden 181s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.810000ms referer=None 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-73fa2b97-19f5-4e79-93e3-00ba5a5932c6.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55621 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57563 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 73fa2b97-19f5-4e79-93e3-00ba5a5932c6, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 54.470000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.150000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 73fa2b97-19f5-4e79-93e3-00ba5a5932c6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 73fa2b97-19f5-4e79-93e3-00ba5a5932c6 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/73fa2b97-19f5-4e79-93e3-00ba5a5932c6 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/73fa2b97-19f5-4e79-93e3-00ba5a5932c6', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 181s yielded = ctx_run(next, result) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 181s import functools 181s File "/usr/lib/python3.13/functools.py", line 18, in 181s from collections import namedtuple 181s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 181s from _collections import deque 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 946, in _load_unlocked 181s KeyboardInterrupt 181s ______________________ KernelAPITest.test_kernel_handler _______________________ 181s 181s self = 181s 181s def test_kernel_handler(self): 181s # GET kernel with given id 181s kid = self.kern_api.start().json()['id'] 181s r = self.kern_api.get(kid) 181s kern1 = r.json() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(kern1, dict) 181s self.assertIn('id', kern1) 181s self.assertEqual(kern1['id'], kid) 181s 181s # Request a bad kernel id and check that a JSON 181s # message is returned! 181s bad_id = '111-111-111-111-111' 181s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 181s self.kern_api.get(bad_id) 181s 181s # DELETE kernel with id 181s > r = self.kern_api.shutdown(kid) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1115, in get_code 181s File "", line 1215, in get_data 181s KeyboardInterrupt 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-0b1207b1-049b-4d81-9236-902a4e4607a5.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57459 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41049 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b1207b1-049b-4d81-9236-902a4e4607a5, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.900000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5 (::1) 0.980000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s 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 181s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 181s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.810000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b1207b1-049b-4d81-9236-902a4e4607a5 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b1207b1-049b-4d81-9236-902a4e4607a5 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 181s yielded = ctx_run(next, result) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5 (::1) 7.800000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 73fa2b97-19f5-4e79-93e3-00ba5a5932c6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 73fa2b97-19f5-4e79-93e3-00ba5a5932c6 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/73fa2b97-19f5-4e79-93e3-00ba5a5932c6 (::1) 2.730000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b1207b1-049b-4d81-9236-902a4e4607a5 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b1207b1-049b-4d81-9236-902a4e4607a5 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0b1207b1-049b-4d81-9236-902a4e4607a5 (::1) 0.990000ms 181s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 181s 181s self = 181s 181s def test_main_kernel_handler(self): 181s # POST request 181s r = self.kern_api.start() 181s kern1 = r.json() 181s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 181s self.assertEqual(r.status_code, 201) 181s self.assertIsInstance(kern1, dict) 181s 181s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 181s expected_csp = '; '.join([ 181s "frame-ancestors 'self'", 181s 'report-uri ' + report_uri, 181s "default-src 'none'" 181s ]) 181s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 181s 181s # GET request 181s r = self.kern_api.list() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(r.json(), list) 181s self.assertEqual(r.json()[0]['id'], kern1['id']) 181s self.assertEqual(r.json()[0]['name'], kern1['name']) 181s 181s # create another kernel and check that they both are added to the 181s # list of kernels from a GET request 181s kern2 = self.kern_api.start().json() 181s assert isinstance(kern2, dict) 181s r = self.kern_api.list() 181s kernels = r.json() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(kernels, list) 181s self.assertEqual(len(kernels), 2) 181s 181s # Interrupt a kernel 181s r = self.kern_api.interrupt(kern2['id']) 181s self.assertEqual(r.status_code, 204) 181s 181s # Restart a kernel 181s > r = self.kern_api.restart(kern2['id']) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 181s return self._req('POST', url_path_join(id, 'restart')) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943/restart 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 181s from ._local import * 181s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 181s class PureWindowsPath(PurePath): 181s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 181s import ntpath 181s File "/usr/lib/python3.13/ntpath.py", line 472, in 181s from nt import _path_normpath as normpath 181s File "", line 1360, in _find_and_load 181s File "", line 1322, in _find_and_load_unlocked 181s File "", line 1262, in _find_spec 181s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 181s method_name = 'spec_for_{fullname}'.format(**locals()) 181s KeyboardInterrupt 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-24518e32-a566-4428-91f6-436ae8b0e5e7.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49365 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52921 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24518e32-a566-4428-91f6-436ae8b0e5e7, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.040000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmphfh9g8vc/runtime/kernel-dd32efc1-b4fa-4fc7-b933-cf5c51785943.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49551 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50839 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: dd32efc1-b4fa-4fc7-b933-cf5c51785943, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.350000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: dd32efc1-b4fa-4fc7-b933-cf5c51785943 181s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943/interrupt (::1) 3.090000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 181s yield maybe_future(km.restart_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 181s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 181s await ensure_async(kernel.restart_kernel(now=now)) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 181s await self._async_shutdown_kernel(now=now, restart=True) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943/restart (::1) 9.240000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.020000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24518e32-a566-4428-91f6-436ae8b0e5e7 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24518e32-a566-4428-91f6-436ae8b0e5e7 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 181s yielded = ctx_run(next, result) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 (::1) 10.890000ms referer=None 181s ________________________ KernelAPITest.test_no_kernels _________________________ 181s 181s self = 181s 181s def test_no_kernels(self): 181s """Make sure there are no kernels running at the start""" 181s kernels = self.kern_api.list().json() 181s > self.assertEqual(kernels, []) 181s E AssertionError: Lists differ: [{'id': '24518e32-a566-4428-91f6-436ae8b0e[281 chars]: 0}] != [] 181s E 181s E First list contains 2 additional elements. 181s E First extra element 0: 181s E {'id': '24518e32-a566-4428-91f6-436ae8b0e5e7', 'name': 'python3', 'last_activity': '2026-01-30T08:09:07.700671Z', 'execution_state': 'starting', 'connections': 0} 181s E 181s E + [] 181s E - [{'connections': 0, 181s E - 'execution_state': 'starting', 181s E - 'id': '24518e32-a566-4428-91f6-436ae8b0e5e7', 181s E - 'last_activity': '2026-01-30T08:09:07.700671Z', 181s E - 'name': 'python3'}, 181s E - {'connections': 0, 181s E - 'execution_state': 'starting', 181s E - 'id': 'dd32efc1-b4fa-4fc7-b933-cf5c51785943', 181s E - 'last_activity': '2026-01-30T08:09:07.725740Z', 181s E - 'name': 'python3'}] 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.050000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24518e32-a566-4428-91f6-436ae8b0e5e7 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24518e32-a566-4428-91f6-436ae8b0e5e7 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/24518e32-a566-4428-91f6-436ae8b0e5e7 (::1) 1.260000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dd32efc1-b4fa-4fc7-b933-cf5c51785943 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dd32efc1-b4fa-4fc7-b933-cf5c51785943 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dd32efc1-b4fa-4fc7-b933-cf5c51785943 (::1) 1.250000ms 181s ---------------------------- Captured log teardown ----------------------------- 181s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 181s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 181s _____________________ AsyncKernelAPITest.test_connections ______________________ 181s 181s self = 181s 181s def tearDown(self): 181s for k in self.kern_api.list().json(): 181s > self.kern_api.shutdown(k['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log setup ------------------------------ 181s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp3cprnwyf/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp3cprnwyf/etc/jupyter'] for config files 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3cprnwyf/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3cprnwyf/config 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3cprnwyf/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3cprnwyf/config 181s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp3cprnwyf/notebooks 181s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 181s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 181s WARNING NotebookApp:handlers.py:612 Forbidden 181s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.320000ms referer=None 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-acad634f-78b1-4c5b-9a26-677eaabd95f0.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54693 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50859 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: acad634f-78b1-4c5b-9a26-677eaabd95f0, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.050000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 2.450000ms 181s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0/channels 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 181s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48535 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (starting) 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (busy) 181s 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/'}]} 181s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel acad634f-78b1-4c5b-9a26-677eaabd95f0) to 5.4 (client). 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (idle) 181s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0/channels (::1) 684.220000ms 181s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0/channels 181s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50859 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48535 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54693 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48259 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48535 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54693 181s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 181s Setting websocket_ping_timeout=30000 181s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 1.230000ms 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (busy) 181s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (busy) 181s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (idle) 181s DEBUG NotebookApp:kernelmanager.py:423 activity on acad634f-78b1-4c5b-9a26-677eaabd95f0: status (idle) 181s DEBUG NotebookApp:handlers.py:579 Websocket closed acad634f-78b1-4c5b-9a26-677eaabd95f0:304009df-2192e0c2eca1ce5e1c84072e 181s INFO NotebookApp:kernelmanager.py:222 Starting buffering for acad634f-78b1-4c5b-9a26-677eaabd95f0:304009df-2192e0c2eca1ce5e1c84072e 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on acad634f-78b1-4c5b-9a26-677eaabd95f0:iopub 181s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on acad634f-78b1-4c5b-9a26-677eaabd95f0:iopub 181s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on acad634f-78b1-4c5b-9a26-677eaabd95f0:iopub 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 0.930000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 0.940000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for acad634f-78b1-4c5b-9a26-677eaabd95f0 181s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for acad634f-78b1-4c5b-9a26-677eaabd95f0:304009df-2192e0c2eca1ce5e1c84072e 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 7.900000ms referer=None 181s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 181s 181s self = 181s 181s def tearDown(self): 181s for k in self.kern_api.list().json(): 181s > self.kern_api.shutdown(k['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4c363435-05b8-4dd3-868e-df4443762952 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 181s from ._local import * 181s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 181s class PureWindowsPath(PurePath): 181s ...<7 lines>... 181s __slots__ = () 181s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 181s import ntpath 181s KeyboardInterrupt 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-4c363435-05b8-4dd3-868e-df4443762952.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44945 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33559 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4c363435-05b8-4dd3-868e-df4443762952, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.140000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.120000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for acad634f-78b1-4c5b-9a26-677eaabd95f0 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/acad634f-78b1-4c5b-9a26-677eaabd95f0 (::1) 1.450000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c363435-05b8-4dd3-868e-df4443762952 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c363435-05b8-4dd3-868e-df4443762952 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4c363435-05b8-4dd3-868e-df4443762952 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4c363435-05b8-4dd3-868e-df4443762952', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4c363435-05b8-4dd3-868e-df4443762952 (::1) 16.660000ms referer=None 181s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 181s 181s self = 181s 181s def test_kernel_handler(self): 181s # GET kernel with given id 181s kid = self.kern_api.start().json()['id'] 181s r = self.kern_api.get(kid) 181s kern1 = r.json() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(kern1, dict) 181s self.assertIn('id', kern1) 181s self.assertEqual(kern1['id'], kid) 181s 181s # Request a bad kernel id and check that a JSON 181s # message is returned! 181s bad_id = '111-111-111-111-111' 181s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 181s self.kern_api.get(bad_id) 181s 181s # DELETE kernel with id 181s > r = self.kern_api.shutdown(kid) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-3f25ba45-9dd4-4680-8291-a35ef80f3fc5.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45101 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56791 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3f25ba45-9dd4-4680-8291-a35ef80f3fc5, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.690000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5 (::1) 4.630000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s 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 181s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 181s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.580000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5 (::1) 17.610000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4c363435-05b8-4dd3-868e-df4443762952 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c363435-05b8-4dd3-868e-df4443762952 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4c363435-05b8-4dd3-868e-df4443762952 (::1) 0.920000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3f25ba45-9dd4-4680-8291-a35ef80f3fc5 (::1) 0.920000ms 181s --------------------------- Captured stderr teardown --------------------------- 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 181s import functools 181s File "/usr/lib/python3.13/functools.py", line 18, in 181s from collections import namedtuple 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 181s 181s self = 181s 181s def test_main_kernel_handler(self): 181s # POST request 181s r = self.kern_api.start() 181s kern1 = r.json() 181s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 181s self.assertEqual(r.status_code, 201) 181s self.assertIsInstance(kern1, dict) 181s 181s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 181s expected_csp = '; '.join([ 181s "frame-ancestors 'self'", 181s 'report-uri ' + report_uri, 181s "default-src 'none'" 181s ]) 181s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 181s 181s # GET request 181s r = self.kern_api.list() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(r.json(), list) 181s self.assertEqual(r.json()[0]['id'], kern1['id']) 181s self.assertEqual(r.json()[0]['name'], kern1['name']) 181s 181s # create another kernel and check that they both are added to the 181s # list of kernels from a GET request 181s kern2 = self.kern_api.start().json() 181s assert isinstance(kern2, dict) 181s r = self.kern_api.list() 181s kernels = r.json() 181s self.assertEqual(r.status_code, 200) 181s assert isinstance(kernels, list) 181s self.assertEqual(len(kernels), 2) 181s 181s # Interrupt a kernel 181s r = self.kern_api.interrupt(kern2['id']) 181s self.assertEqual(r.status_code, 204) 181s 181s # Restart a kernel 181s > r = self.kern_api.restart(kern2['id']) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 181s return self._req('POST', url_path_join(id, 'restart')) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9/restart 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Could not import runpy module 181s Traceback (most recent call last): 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1115, in get_code 181s File "", line 1215, in get_data 181s KeyboardInterrupt 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-e830f92f-5817-476a-b919-462a03f27d87.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39113 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50437 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: e830f92f-5817-476a-b919-462a03f27d87, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.260000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3cprnwyf/runtime/kernel-7c896a8d-c659-4963-8662-bf70abbb44f9.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53925 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54447 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c896a8d-c659-4963-8662-bf70abbb44f9, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.120000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7c896a8d-c659-4963-8662-bf70abbb44f9 181s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9/interrupt (::1) 0.870000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 181s yield maybe_future(km.restart_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 181s result = coro.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 181s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 181s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 181s yield self # This tells Task to wait for completion. 181s ^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 181s await ensure_async(kernel.restart_kernel(now=now)) 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 181s await self._async_shutdown_kernel(now=now, restart=True) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9/restart (::1) 9.390000ms referer=None 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e830f92f-5817-476a-b919-462a03f27d87 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e830f92f-5817-476a-b919-462a03f27d87 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 181s yield maybe_future(km.shutdown_kernel(kernel_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 181s 181s self = 181s 181s def test_no_kernels(self): 181s """Make sure there are no kernels running at the start""" 181s kernels = self.kern_api.list().json() 181s > self.assertEqual(kernels, []) 181s E AssertionError: Lists differ: [{'id': 'e830f92f-5817-476a-b919-462a03f27[281 chars]: 0}] != [] 181s E 181s E First list contains 2 additional elements. 181s E First extra element 0: 181s E {'id': 'e830f92f-5817-476a-b919-462a03f27d87', 'name': 'python3', 'last_activity': '2026-01-30T08:09:08.882593Z', 'execution_state': 'starting', 'connections': 0} 181s E 181s E + [] 181s E - [{'connections': 0, 181s E - 'execution_state': 'starting', 181s E - 'id': 'e830f92f-5817-476a-b919-462a03f27d87', 181s E - 'last_activity': '2026-01-30T08:09:08.882593Z', 181s E - 'name': 'python3'}, 181s E - {'connections': 0, 181s E - 'execution_state': 'starting', 181s E - 'id': '7c896a8d-c659-4963-8662-bf70abbb44f9', 181s E - 'last_activity': '2026-01-30T08:09:08.904376Z', 181s E - 'name': 'python3'}] 181s 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e830f92f-5817-476a-b919-462a03f27d87 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e830f92f-5817-476a-b919-462a03f27d87 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e830f92f-5817-476a-b919-462a03f27d87 (::1) 1.450000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c896a8d-c659-4963-8662-bf70abbb44f9 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c896a8d-c659-4963-8662-bf70abbb44f9 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7c896a8d-c659-4963-8662-bf70abbb44f9 (::1) 1.120000ms 181s ---------------------------- Captured log teardown ----------------------------- 181s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4c363435-05b8-4dd3-868e-df4443762952 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e830f92f-5817-476a-b919-462a03f27d87 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: acad634f-78b1-4c5b-9a26-677eaabd95f0 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3f25ba45-9dd4-4680-8291-a35ef80f3fc5 181s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 181s __________________________ SessionAPITest.test_create __________________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8f9e27cd-8e4f-4d47-821a-e386e0f356a1 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log setup ------------------------------ 181s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4vdh80s2/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4vdh80s2/etc/jupyter'] for config files 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4vdh80s2/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4vdh80s2/config 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4vdh80s2/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4vdh80s2/config 181s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4vdh80s2/notebooks 181s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 181s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 181s WARNING NotebookApp:handlers.py:612 Forbidden 181s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.790000ms referer=None 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.560000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-ec088095-8d37-401a-b10a-8c73e3e9ae98.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60049 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58715 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec088095-8d37-401a-b10a-8c73e3e9ae98, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.420000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8f9e27cd-8e4f-4d47-821a-e386e0f356a1 (::1) 1.060000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.590000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec088095-8d37-401a-b10a-8c73e3e9ae98 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec088095-8d37-401a-b10a-8c73e3e9ae98 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8f9e27cd-8e4f-4d47-821a-e386e0f356a1 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8f9e27cd-8e4f-4d47-821a-e386e0f356a1', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 126, in 181s from . import _compiler, _parser 181s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 181s from . import _parser 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1125, in get_code 181s KeyboardInterrupt 181s __________________ SessionAPITest.test_create_console_session __________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7b206dbb-befc-4955-9103-494b1aa29e58 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-bf496f00-2ab2-4961-95a6-885fc09d4ab9.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48369 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40095 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: bf496f00-2ab2-4961-95a6-885fc09d4ab9, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.960000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec088095-8d37-401a-b10a-8c73e3e9ae98 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec088095-8d37-401a-b10a-8c73e3e9ae98 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8f9e27cd-8e4f-4d47-821a-e386e0f356a1 (::1) 3.860000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf496f00-2ab2-4961-95a6-885fc09d4ab9 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf496f00-2ab2-4961-95a6-885fc09d4ab9 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7b206dbb-befc-4955-9103-494b1aa29e58 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7b206dbb-befc-4955-9103-494b1aa29e58', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 316, in 181s Match = type(_compiler.compile('', 0).match('')) 181s ~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 181s p = _parser.parse(p, flags) 181s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 181s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 181s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 181s itemsappend(_parse(source, state, verbose, nested + 1, 181s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s not nested and not items)) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s KeyboardInterrupt 181s ____________________ SessionAPITest.test_create_deprecated _____________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b8fe2ccf-133f-48b4-a6b6-93809395e6aa 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-cebf9986-c5ed-4929-a599-5a176301ed5d.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37313 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59455 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: cebf9986-c5ed-4929-a599-5a176301ed5d, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.250000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf496f00-2ab2-4961-95a6-885fc09d4ab9 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf496f00-2ab2-4961-95a6-885fc09d4ab9 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7b206dbb-befc-4955-9103-494b1aa29e58 (::1) 1.560000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cebf9986-c5ed-4929-a599-5a176301ed5d 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cebf9986-c5ed-4929-a599-5a176301ed5d 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8fe2ccf-133f-48b4-a6b6-93809395e6aa (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8fe2ccf-133f-48b4-a6b6-93809395e6aa', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 126, in 181s from . import _compiler, _parser 181s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 181s from . import _parser 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s ___________________ SessionAPITest.test_create_file_session ____________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-e3bb4e1b-ff63-4a25-8e7c-f197e2008348.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36033 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45433 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: e3bb4e1b-ff63-4a25-8e7c-f197e2008348, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.100000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cebf9986-c5ed-4929-a599-5a176301ed5d 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cebf9986-c5ed-4929-a599-5a176301ed5d 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b8fe2ccf-133f-48b4-a6b6-93809395e6aa (::1) 4.140000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b (::1) 8.330000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 125, in 181s import enum 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1115, in get_code 181s File "", line 1215, in get_data 181s KeyboardInterrupt 181s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 181s 181s self = 181s 181s def test_create_with_kernel_id(self): 181s # create a new kernel 181s r = self.request('POST', 'api/kernels') 181s r.raise_for_status() 181s kernel = r.json() 181s 181s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 181s self.assertEqual(resp.status_code, 201) 181s newsession = resp.json() 181s self.assertIn('id', newsession) 181s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 181s self.assertEqual(newsession['kernel']['id'], kernel['id']) 181s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 181s 181s sessions = self.sess_api.list().json() 181s > self.assertEqual(sessions, [newsession]) 181s E AssertionError: Lists differ: [{'id': '17ca3982-dc90-44b7-9a14-fcae4f8d008b', 'pa[552 chars]ne}}] != [{'id': '12121b4d-a249-411e-b5ba-2bde97c3e7c1', 'pa[278 chars]ne}}] 181s E 181s E First differing element 0: 181s E {'id': '17ca3982-dc90-44b7-9a14-fcae4f8d008b', 'pa[217 chars]: 0}} 181s E {'id': '12121b4d-a249-411e-b5ba-2bde97c3e7c1', 'pa[277 chars]one}} 181s E 181s E First list contains 1 additional elements. 181s E First extra element 1: 181s E {'id': '12121b4d-a249-411e-b5ba-2bde97c3e7c1', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '94da3112-7eef-4a7b-ac24-f6478c136ec6', 'name': 'python3', 'last_activity': '2026-01-30T08:09:09.444889Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 181s E 181s E Diff is 830 characters long. Set self.maxDiff to None to see it. 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-94da3112-7eef-4a7b-ac24-f6478c136ec6.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52353 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56915 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94da3112-7eef-4a7b-ac24-f6478c136ec6, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.020000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.600000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e3bb4e1b-ff63-4a25-8e7c-f197e2008348 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/17ca3982-dc90-44b7-9a14-fcae4f8d008b (::1) 2.820000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.450000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-91280643-ef19-448e-91bb-d64e9f7929a6.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44489 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60949 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91280643-ef19-448e-91bb-d64e9f7929a6, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.160000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94da3112-7eef-4a7b-ac24-f6478c136ec6 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 1.870000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91280643-ef19-448e-91bb-d64e9f7929a6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91280643-ef19-448e-91bb-d64e9f7929a6 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 8.030000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 125, in 181s import enum 181s File "/usr/lib/python3.13/enum.py", line 4, in 181s from types import MappingProxyType, DynamicClassAttribute 181s File "/usr/lib/python3.13/types.py", line 334, in __getattr__ 181s def __getattr__(name): 181s 181s KeyboardInterrupt 181s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.940000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-0ab8a8db-daa5-4990-97b7-2cddcc58705a.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53887 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32889 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0ab8a8db-daa5-4990-97b7-2cddcc58705a, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91280643-ef19-448e-91bb-d64e9f7929a6 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91280643-ef19-448e-91bb-d64e9f7929a6 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 18.830000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ab8a8db-daa5-4990-97b7-2cddcc58705a 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ab8a8db-daa5-4990-97b7-2cddcc58705a 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/12121b4d-a249-411e-b5ba-2bde97c3e7c1 (::1) 8.630000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s _______________________ SessionAPITest.test_modify_type ________________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5fa50abc-792d-4910-a617-5809987d0af6 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4vdh80s2/runtime/kernel-347de3fb-e55d-4a9e-bdb8-c71a7f45300f.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51781 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54795 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 347de3fb-e55d-4a9e-bdb8-c71a7f45300f, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4vdh80s2/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.590000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/5fa50abc-792d-4910-a617-5809987d0af6 (::1) 1.230000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 347de3fb-e55d-4a9e-bdb8-c71a7f45300f 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 347de3fb-e55d-4a9e-bdb8-c71a7f45300f 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5fa50abc-792d-4910-a617-5809987d0af6 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5fa50abc-792d-4910-a617-5809987d0af6', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 181s yielded = self.gen.send(value) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 181s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 181s stopper = ensure_async(km.shutdown_kernel(now, restart)) 181s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 181s return _runner_map[name].run(inner) 181s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 181s return fut.result(None) 181s ~~~~~~~~~~^^^^^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 181s return self.__get_result() 181s ~~~~~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 181s raise self._exception 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5fa50abc-792d-4910-a617-5809987d0af6 (::1) 8.350000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "", line 1357, in _find_and_load 181s File "", line 418, in __enter__ 181s File "", line 311, in acquire 181s File "", line 170, in __enter__ 181s File "", line 132, in setdefault 181s File "", line 75, in __new__ 181s KeyboardInterrupt 181s ---------------------------- Captured log teardown ----------------------------- 181s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 347de3fb-e55d-4a9e-bdb8-c71a7f45300f 181s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 181s _______________________ AsyncSessionAPITest.test_create ________________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log setup ------------------------------ 181s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp59v9x7cs/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp59v9x7cs/etc/jupyter'] for config files 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp59v9x7cs/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp59v9x7cs/config 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp59v9x7cs/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 181s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp59v9x7cs/config 181s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp59v9x7cs/notebooks 181s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 181s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 181s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 181s WARNING NotebookApp:handlers.py:612 Forbidden 181s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.700000ms referer=None 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.240000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-79a4db3e-5124-4a92-890b-c88ac7ae84fd.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52119 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58311 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79a4db3e-5124-4a92-890b-c88ac7ae84fd, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.970000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.560000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c (::1) 0.830000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79a4db3e-5124-4a92-890b-c88ac7ae84fd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79a4db3e-5124-4a92-890b-c88ac7ae84fd 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c (::1) 8.090000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 181s gc.collect() 181s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 181s 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 126, in 181s from . import _compiler, _parser 181s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 181s from . import _parser 181s File "/usr/lib/python3.13/re/_parser.py", line 15, in 181s from ._constants import * 181s File "/usr/lib/python3.13/re/_constants.py", line 130, in 181s ATCODES = _makecodes( 181s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 181s ...<5 lines>... 181s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 181s ) 181s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 181s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 181s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 181s KeyboardInterrupt 181s _______________ AsyncSessionAPITest.test_create_console_session ________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/226321c2-6be7-4609-9114-320f6fc973dc 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-98405847-25c3-4328-b986-87309a006f29.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49827 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41899 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 98405847-25c3-4328-b986-87309a006f29, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.160000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79a4db3e-5124-4a92-890b-c88ac7ae84fd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79a4db3e-5124-4a92-890b-c88ac7ae84fd 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b3963749-24ff-4981-8dad-119d653fa01c (::1) 2.700000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98405847-25c3-4328-b986-87309a006f29 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98405847-25c3-4328-b986-87309a006f29 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/226321c2-6be7-4609-9114-320f6fc973dc (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/226321c2-6be7-4609-9114-320f6fc973dc', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/226321c2-6be7-4609-9114-320f6fc973dc (::1) 7.740000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aea317bc-ed5a-4eba-9879-beb51486f4a3 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-21353b3f-f2bf-4927-afc8-1684a2ca1f39.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33575 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50577 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 21353b3f-f2bf-4927-afc8-1684a2ca1f39, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.120000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.540000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98405847-25c3-4328-b986-87309a006f29 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98405847-25c3-4328-b986-87309a006f29 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/226321c2-6be7-4609-9114-320f6fc973dc (::1) 0.990000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21353b3f-f2bf-4927-afc8-1684a2ca1f39 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21353b3f-f2bf-4927-afc8-1684a2ca1f39 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aea317bc-ed5a-4eba-9879-beb51486f4a3 (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aea317bc-ed5a-4eba-9879-beb51486f4a3', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aea317bc-ed5a-4eba-9879-beb51486f4a3 (::1) 8.260000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 3, in 181s import contextlib 181s File "/usr/lib/python3.13/contextlib.py", line 129, in 181s class _GeneratorContextManager( 181s ...<70 lines>... 181s self.gen.close() 181s File "/usr/lib/python3.13/abc.py", line 107, in __new__ 181s _abc_init(cls) 181s ~~~~~~~~~^^^^^ 181s KeyboardInterrupt 181s _________________ AsyncSessionAPITest.test_create_file_session _________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-69dda1e7-5e9f-421c-86a8-c61aa9a6edba.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39409 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34767 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 69dda1e7-5e9f-421c-86a8-c61aa9a6edba, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.090000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.660000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21353b3f-f2bf-4927-afc8-1684a2ca1f39 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21353b3f-f2bf-4927-afc8-1684a2ca1f39 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/aea317bc-ed5a-4eba-9879-beb51486f4a3 (::1) 1.040000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 125, in 181s import enum 181s File "/usr/lib/python3.13/enum.py", line 23, in 181s class nonmember(object): 181s ...<4 lines>... 181s self.value = value 181s File "/usr/lib/python3.13/enum.py", line 23, in nonmember 181s class nonmember(object): 181s 181s KeyboardInterrupt 181s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 181s 181s self = 181s 181s def test_create_with_kernel_id(self): 181s # create a new kernel 181s r = self.request('POST', 'api/kernels') 181s r.raise_for_status() 181s kernel = r.json() 181s 181s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 181s self.assertEqual(resp.status_code, 201) 181s newsession = resp.json() 181s self.assertIn('id', newsession) 181s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 181s self.assertEqual(newsession['kernel']['id'], kernel['id']) 181s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 181s 181s sessions = self.sess_api.list().json() 181s > self.assertEqual(sessions, [newsession]) 181s E AssertionError: Lists differ: [{'id': '42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d', 'p[553 chars]ne}}] != [{'id': '9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', 'p[279 chars]ne}}] 181s E 181s E First differing element 0: 181s E {'id': '42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d', 'p[218 chars]: 0}} 181s E {'id': '9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', 'p[278 chars]one}} 181s E 181s E First list contains 1 additional elements. 181s E First extra element 1: 181s E {'id': '9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'ca8724e8-d249-419d-af6a-3be1899be4cd', 'name': 'python3', 'last_activity': '2026-01-30T08:09:10.150472Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 181s E 181s E Diff is 830 characters long. Set self.maxDiff to None to see it. 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 181s ----------------------------- Captured stderr call ----------------------------- 181s Traceback (most recent call last): 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-ca8724e8-d249-419d-af6a-3be1899be4cd.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36175 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45197 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: ca8724e8-d249-419d-af6a-3be1899be4cd, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.860000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.710000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.650000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/42c94ef9-fbbd-4e45-b7ef-cef6cd46f43d (::1) 2.580000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca8724e8-d249-419d-af6a-3be1899be4cd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca8724e8-d249-419d-af6a-3be1899be4cd 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 8.500000ms referer=None 181s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.860000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-65eed7bf-8a8f-46fd-a37c-5a7a36670508.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58743 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54069 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65eed7bf-8a8f-46fd-a37c-5a7a36670508, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.230000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca8724e8-d249-419d-af6a-3be1899be4cd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca8724e8-d249-419d-af6a-3be1899be4cd 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 1.790000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.260000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65eed7bf-8a8f-46fd-a37c-5a7a36670508 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65eed7bf-8a8f-46fd-a37c-5a7a36670508 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 8.740000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "/usr/lib/python3.13/re/__init__.py", line 126, in 181s from . import _compiler, _parser 181s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 181s from . import _parser 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1152, in get_code 181s File "", line 781, in _compile_bytecode 181s KeyboardInterrupt 181s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.040000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-e1d1fcfc-98b5-4bf6-89b2-2d79dcf6e383.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38161 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44935 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: e1d1fcfc-98b5-4bf6-89b2-2d79dcf6e383, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65eed7bf-8a8f-46fd-a37c-5a7a36670508 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65eed7bf-8a8f-46fd-a37c-5a7a36670508 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 18.350000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e1d1fcfc-98b5-4bf6-89b2-2d79dcf6e383 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e1d1fcfc-98b5-4bf6-89b2-2d79dcf6e383 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9353dbf4-c926-4c1f-a13d-ac1fc5019b2d', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "/usr/lib/python3.13/glob.py", line 5, in 181s import re 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1140, in get_code 181s File "", line 727, in _validate_timestamp_pyc 181s KeyboardInterrupt 181s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 181s 181s @self.addCleanup 181s def cleanup_sessions(): 181s for session in self.sess_api.list().json(): 181s > self.sess_api.delete(session['id']) 181s 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 181s return self._req('DELETE', id) 181s ^^^^^^^^^^^^^^^^^^^^^^^ 181s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 181s response.raise_for_status() 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s self = 181s 181s def raise_for_status(self): 181s """Raises :class:`HTTPError`, if one occurred.""" 181s 181s http_error_msg = "" 181s if isinstance(self.reason, bytes): 181s # We attempt to decode utf-8 first because some servers 181s # choose to localize their reason strings. If the string 181s # isn't utf-8, we fall back to iso-8859-1 for all other 181s # encodings. (See PR #3538) 181s try: 181s reason = self.reason.decode("utf-8") 181s except UnicodeDecodeError: 181s reason = self.reason.decode("iso-8859-1") 181s else: 181s reason = self.reason 181s 181s if 400 <= self.status_code < 500: 181s http_error_msg = ( 181s f"{self.status_code} Client Error: {reason} for url: {self.url}" 181s ) 181s 181s elif 500 <= self.status_code < 600: 181s http_error_msg = ( 181s f"{self.status_code} Server Error: {reason} for url: {self.url}" 181s ) 181s 181s if http_error_msg: 181s > raise HTTPError(http_error_msg, response=self) 181s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d38e2d02-a073-41be-a182-ff87d58a1e3c 181s 181s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 181s ------------------------------ Captured log call ------------------------------- 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 181s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp59v9x7cs/runtime/kernel-c233dbe5-b6ad-43c3-a01d-efa7557c0a2e.json'] 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45463 181s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56959 181s INFO NotebookApp:kernelmanager.py:179 Kernel started: c233dbe5-b6ad-43c3-a01d-efa7557c0a2e, name: python3 181s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp59v9x7cs/notebooks/foo'} 181s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.490000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d38e2d02-a073-41be-a182-ff87d58a1e3c (::1) 1.350000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.600000ms 181s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 181s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c233dbe5-b6ad-43c3-a01d-efa7557c0a2e 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c233dbe5-b6ad-43c3-a01d-efa7557c0a2e 181s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d38e2d02-a073-41be-a182-ff87d58a1e3c (::1) 181s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d38e2d02-a073-41be-a182-ff87d58a1e3c', version='HTTP/1.1', remote_ip='::1') 181s Traceback (most recent call last): 181s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 181s result = await result 181s ^^^^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 181s future.result() 181s ~~~~~~~~~~~~~^^ 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 181s yield maybe_future(sm.delete_session(session_id)) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 181s yielded = self.gen.throw(exc) 181s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 181s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 181s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 181s value = future.result() 181s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 181s raise self._exception.with_traceback(self._exception_tb) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 181s result = coro.send(None) 181s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 181s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 181s raise km.ready.exception() # type: ignore[misc] 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 181s await kernel_awaitable 181s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 181s result = await obj 181s ^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 181s raise e 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 181s out = await method(self, *args, **kwargs) 181s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 181s await self._async_finish_shutdown(restart=restart) 181s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 181s await asyncio.wait_for( 181s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 181s ) 181s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 181s async with timeouts.timeout(timeout): 181s ~~~~~~~~~~~~~~~~^^^^^^^^^ 181s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 181s raise RuntimeError("Timeout should be used inside a task") 181s RuntimeError: Timeout should be used inside a task 181s WARNING NotebookApp:handlers.py:612 Unhandled error 181s ERROR NotebookApp:log.py:55 { 181s "Host": "localhost:12341", 181s "Accept": "*/*", 181s "User-Agent": "python-requests/2.32.5" 181s } 181s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d38e2d02-a073-41be-a182-ff87d58a1e3c (::1) 7.180000ms referer=None 181s --------------------------- Captured stderr teardown --------------------------- 181s Traceback (most recent call last): 181s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 181s return _run_code(code, main_globals, None, 181s "__main__", mod_spec) 181s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 181s exec(code, run_globals) 181s ~~~~^^^^^^^^^^^^^^^^^^^ 181s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 181s from pathlib import Path 181s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 181s from ._abc import * 181s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 181s from glob import _Globber, _no_recurse_symlinks 181s File "", line 1360, in _find_and_load 181s File "", line 1331, in _find_and_load_unlocked 181s File "", line 935, in _load_unlocked 181s File "", line 1019, in exec_module 181s File "", line 1115, in get_code 181s File "", line 1215, in get_data 181s KeyboardInterrupt 181s ---------------------------- Captured log teardown ----------------------------- 181s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21353b3f-f2bf-4927-afc8-1684a2ca1f39 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98405847-25c3-4328-b986-87309a006f29 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca8724e8-d249-419d-af6a-3be1899be4cd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79a4db3e-5124-4a92-890b-c88ac7ae84fd 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65eed7bf-8a8f-46fd-a37c-5a7a36670508 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e1d1fcfc-98b5-4bf6-89b2-2d79dcf6e383 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c233dbe5-b6ad-43c3-a01d-efa7557c0a2e 181s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 69dda1e7-5e9f-421c-86a8-c61aa9a6edba 181s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 181s =============================== warnings summary =============================== 181s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 181s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 181s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 181s return LooseVersion(v) >= LooseVersion(check) 181s 181s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 181s services/kernels/tests/test_kernels_api.py: 72 warnings 181s services/sessions/tests/test_sessions_api.py: 106 warnings 181s /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). 181s dt = unaware(*args, **kwargs) 181s 181s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 181s /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 181s pytestmark = pytest.mark.integration_tests 181s 181s services/kernels/tests/test_kernels_api.py: 6 warnings 181s services/sessions/tests/test_sessions_api.py: 6 warnings 181s /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 181s policy = events.get_event_loop_policy() 181s 181s services/kernels/tests/test_kernels_api.py: 24 warnings 181s services/sessions/tests/test_sessions_api.py: 19 warnings 181s /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 181s loop = events.get_event_loop_policy().get_event_loop() 181s 181s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 181s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 181s loop.make_current() 181s 181s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 181s =========================== short test summary info ============================ 181s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 181s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 181s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 181s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 181s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 181s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 181s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 181s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 181s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 181s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 181s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 181s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 181s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 181s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 181s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 181s ===== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 6.61s ===== 181s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 181s *** 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 185s ============================= test session starts ============================== 185s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 185s rootdir: /tmp/autopkgtest.crwF8L/autopkgtest_tmp 185s plugins: typeguard-4.4.4 185s collected 330 items / 305 deselected / 25 selected 185s run-last-failure: rerun previous 25 failures 185s 187s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 188s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 188s 188s ==================================== ERRORS ==================================== 188s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 188s 188s self = 188s 188s def tearDown(self): 188s for k in self.kern_api.list().json(): 188s > self.kern_api.shutdown(k['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 3, in 188s import contextlib 188s File "", line 1360, in _find_and_load 188s File "", line 1331, in _find_and_load_unlocked 188s File "", line 935, in _load_unlocked 188s File "", line 1019, in exec_module 188s File "", line 1152, in get_code 188s File "", line 781, in _compile_bytecode 188s KeyboardInterrupt 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-92c824c5-b996-4ad6-993a-b35bcf31b59c.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37773 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59307 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92c824c5-b996-4ad6-993a-b35bcf31b59c, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.080000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.780000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-937b13ed-06f0-422e-a92c-8a6cbfc822b1.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42611 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35709 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 937b13ed-06f0-422e-a92c-8a6cbfc822b1, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.840000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.900000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 937b13ed-06f0-422e-a92c-8a6cbfc822b1 188s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1/interrupt (::1) 3.150000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 188s yield maybe_future(km.restart_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 188s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 188s await ensure_async(kernel.restart_kernel(now=now)) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 188s await self._async_shutdown_kernel(now=now, restart=True) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1/restart (::1) 11.820000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.560000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 188s yielded = ctx_run(next, result) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 188s from ipykernel import kernelapp as app 188s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 188s from .connect import * # noqa: F403 188s ^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 188s import jupyter_client 188s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 188s from .asynchronous import AsyncKernelClient 188s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 188s from .client import AsyncKernelClient # noqa 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 188s import zmq.asyncio 188s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 188s import asyncio 188s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 188s from .base_events import * 188s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 188s import socket 188s File "/usr/lib/python3.13/socket.py", line 86, in 188s IntFlag._convert_( 188s ~~~~~~~~~~~~~~~~~^ 188s 'MsgFlag', 188s ^^^^^^^^^^ 188s __name__, 188s ^^^^^^^^^ 188s lambda C: C.isupper() and C.startswith('MSG_')) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 188s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 188s File "/usr/lib/python3.13/enum.py", line 1826, in convert_class 188s member = new_member(enum_class, *value) 188s KeyboardInterrupt 188s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 188s 188s self = 188s 188s def tearDown(self): 188s for k in self.kern_api.list().json(): 188s > self.kern_api.shutdown(k['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Fatal Python error: init_import_site: Failed to import the site module 188s Python runtime state: initialized 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/site.py", line 735, in 188s main() 188s File "/usr/lib/python3.13/site.py", line 728, in main 188s execsitecustomize() 188s File "/usr/lib/python3.13/site.py", line 667, in execsitecustomize 188s import sitecustomize 188s File "/usr/lib/python3.13/sitecustomize.py", line 3, in 188s import apport_python_hook 188s File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 14, in 188s import types 188s File "", line 1360, in _find_and_load 188s File "", line 1322, in _find_and_load_unlocked 188s File "", line 1262, in _find_spec 188s File "", line 1556, in find_spec 188s File "", line 1530, in _get_spec 188s File "", line 1657, in find_spec 188s File "", line 131, in _path_join 188s KeyboardInterrupt 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-fe721ab9-9577-44ec-8c73-0723d7c36feb.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44839 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46101 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe721ab9-9577-44ec-8c73-0723d7c36feb, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.190000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-60651661-fb4a-46cb-882c-821a0aec9a5e.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40185 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44545 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60651661-fb4a-46cb-882c-821a0aec9a5e, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.040000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 60651661-fb4a-46cb-882c-821a0aec9a5e 188s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e/interrupt (::1) 2.310000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 188s yield maybe_future(km.restart_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 188s result = coro.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 188s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 188s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 188s yield self # This tells Task to wait for completion. 188s ^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 188s await ensure_async(kernel.restart_kernel(now=now)) 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 188s await self._async_shutdown_kernel(now=now, restart=True) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e/restart (::1) 7.300000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe721ab9-9577-44ec-8c73-0723d7c36feb 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe721ab9-9577-44ec-8c73-0723d7c36feb 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 188s from ipykernel import kernelapp as app 188s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 188s from .connect import * # noqa: F403 188s ^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 188s import jupyter_client 188s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 188s from .asynchronous import AsyncKernelClient 188s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 188s from .client import AsyncKernelClient # noqa 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 188s import zmq.asyncio 188s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 188s import asyncio 188s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 188s from .base_events import * 188s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 188s import concurrent.futures 188s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 188s from concurrent.futures._base import (FIRST_COMPLETED, 188s ...<9 lines>... 188s as_completed) 188s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 188s import logging 188s File "/usr/lib/python3.13/logging/__init__.py", line 26, in 188s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 188s File "/usr/lib/python3.13/traceback.py", line 7, in 188s import textwrap 188s File "/usr/lib/python3.13/textwrap.py", line 17, in 188s class TextWrapper: 188s ...<350 lines>... 188s return "\n".join(self.wrap(text)) 188s File "/usr/lib/python3.13/textwrap.py", line 78, in TextWrapper 188s wordsep_re = re.compile(r''' 188s ( # any whitespace 188s ...<14 lines>... 188s 'ws': whitespace, 'nws': nowhitespace}, 188s re.VERBOSE) 188s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 188s return _compile(pattern, flags) 188s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 188s p = _compiler.compile(pattern, flags) 188s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 188s p = _parser.parse(p, flags) 188s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 188s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 188s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 188s itemsappend(_parse(source, state, verbose, nested + 1, 188s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s not nested and not items)) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 188s p = _parse_sub(source, state, sub_verbose, nested + 1) 188s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 188s itemsappend(_parse(source, state, verbose, nested + 1, 188s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s not nested and not items)) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/re/_parser.py", line 691, in _parse 188s if item[0][0] is SUBPATTERN: 188s ~~~~^^^ 188s File "/usr/lib/python3.13/re/_parser.py", line 167, in __getitem__ 188s def __getitem__(self, index): 188s 188s KeyboardInterrupt 188s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-8d5b6ab2-1a59-427e-80f6-622bf179994a.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56609 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44963 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d5b6ab2-1a59-427e-80f6-622bf179994a, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.990000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.470000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.160000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4 (::1) 1.080000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 7.570000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 188s from ._local import * 188s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 188s class PureWindowsPath(PurePath): 188s ...<7 lines>... 188s __slots__ = () 188s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 188s import ntpath 188s File "/usr/lib/python3.13/ntpath.py", line 849, in 188s from nt import _path_isdir as isdir 188s File "", line 1357, in _find_and_load 188s File "", line 418, in __enter__ 188s File "", line 311, in acquire 188s File "", line 170, in __enter__ 188s File "", line 132, in setdefault 188s File "", line 75, in __new__ 188s KeyboardInterrupt 188s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-b6d36b64-a560-4b76-9f1b-70f5cf271453.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52449 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44095 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: b6d36b64-a560-4b76-9f1b-70f5cf271453, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.770000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.730000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2ddcc0a-5b7e-4090-8148-9ea295f92f88 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2ddcc0a-5b7e-4090-8148-9ea295f92f88 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d (::1) 1.020000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6d36b64-a560-4b76-9f1b-70f5cf271453 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6d36b64-a560-4b76-9f1b-70f5cf271453 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 7.780000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 188s from ipykernel import kernelapp as app 188s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 188s from .connect import * # noqa: F403 188s ^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 188s import json 188s File "/usr/lib/python3.13/json/__init__.py", line 106, in 188s from .decoder import JSONDecoder, JSONDecodeError 188s File "", line 1360, in _find_and_load 188s File "", line 1331, in _find_and_load_unlocked 188s File "", line 935, in _load_unlocked 188s File "", line 1019, in exec_module 188s File "", line 1152, in get_code 188s File "", line 781, in _compile_bytecode 188s KeyboardInterrupt 188s =================================== FAILURES =================================== 188s ______________________ KernelAPITest.test_default_kernel _______________________ 188s 188s self = 188s 188s def tearDown(self): 188s for k in self.kern_api.list().json(): 188s > self.kern_api.shutdown(k['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4dcadeff-b965-45cb-9a0e-ee139642c308 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log setup ------------------------------ 188s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0yqib5kh/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0yqib5kh/etc/jupyter'] for config files 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0yqib5kh/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0yqib5kh/config 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0yqib5kh/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0yqib5kh/config 188s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0yqib5kh/notebooks 188s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 188s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 188s WARNING NotebookApp:handlers.py:612 Forbidden 188s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.920000ms referer=None 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-4dcadeff-b965-45cb-9a0e-ee139642c308.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35047 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36031 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4dcadeff-b965-45cb-9a0e-ee139642c308, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 54.430000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.130000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dcadeff-b965-45cb-9a0e-ee139642c308 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dcadeff-b965-45cb-9a0e-ee139642c308 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4dcadeff-b965-45cb-9a0e-ee139642c308 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4dcadeff-b965-45cb-9a0e-ee139642c308', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 188s yielded = ctx_run(next, result) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 3, in 188s import contextlib 188s File "/usr/lib/python3.13/contextlib.py", line 129, in 188s class _GeneratorContextManager( 188s ...<70 lines>... 188s self.gen.close() 188s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 188s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 188s KeyboardInterrupt 188s ______________________ KernelAPITest.test_kernel_handler _______________________ 188s 188s self = 188s 188s def test_kernel_handler(self): 188s # GET kernel with given id 188s kid = self.kern_api.start().json()['id'] 188s r = self.kern_api.get(kid) 188s kern1 = r.json() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(kern1, dict) 188s self.assertIn('id', kern1) 188s self.assertEqual(kern1['id'], kid) 188s 188s # Request a bad kernel id and check that a JSON 188s # message is returned! 188s bad_id = '111-111-111-111-111' 188s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 188s self.kern_api.get(bad_id) 188s 188s # DELETE kernel with id 188s > r = self.kern_api.shutdown(kid) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/727a1bed-9846-4d51-b8c6-1cbcc7312d26 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-727a1bed-9846-4d51-b8c6-1cbcc7312d26.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44003 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33119 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 727a1bed-9846-4d51-b8c6-1cbcc7312d26, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.220000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/727a1bed-9846-4d51-b8c6-1cbcc7312d26 (::1) 2.670000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s 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 188s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 188s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.520000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 727a1bed-9846-4d51-b8c6-1cbcc7312d26 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 727a1bed-9846-4d51-b8c6-1cbcc7312d26 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/727a1bed-9846-4d51-b8c6-1cbcc7312d26 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/727a1bed-9846-4d51-b8c6-1cbcc7312d26', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 188s yielded = ctx_run(next, result) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/727a1bed-9846-4d51-b8c6-1cbcc7312d26 (::1) 7.260000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4dcadeff-b965-45cb-9a0e-ee139642c308 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4dcadeff-b965-45cb-9a0e-ee139642c308 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4dcadeff-b965-45cb-9a0e-ee139642c308 (::1) 1.000000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 727a1bed-9846-4d51-b8c6-1cbcc7312d26 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 727a1bed-9846-4d51-b8c6-1cbcc7312d26 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "/usr/lib/python3.13/re/__init__.py", line 125, in 188s import enum 188s File "/usr/lib/python3.13/enum.py", line 1109, in 188s class Enum(metaclass=EnumType): 188s ...<230 lines>... 188s return self._value_ 188s File "/usr/lib/python3.13/enum.py", line 1109, in Enum 188s class Enum(metaclass=EnumType): 188s 188s File "/usr/lib/python3.13/enum.py", line 363, in __setitem__ 188s if self._cls_name is not None and _is_private(self._cls_name, key): 188s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/enum.py", line 78, in _is_private 188s def _is_private(cls_name, name): 188s 188s KeyboardInterrupt 188s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 188s 188s self = 188s 188s def test_main_kernel_handler(self): 188s # POST request 188s r = self.kern_api.start() 188s kern1 = r.json() 188s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 188s self.assertEqual(r.status_code, 201) 188s self.assertIsInstance(kern1, dict) 188s 188s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 188s expected_csp = '; '.join([ 188s "frame-ancestors 'self'", 188s 'report-uri ' + report_uri, 188s "default-src 'none'" 188s ]) 188s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 188s 188s # GET request 188s r = self.kern_api.list() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(r.json(), list) 188s self.assertEqual(r.json()[0]['id'], kern1['id']) 188s self.assertEqual(r.json()[0]['name'], kern1['name']) 188s 188s # create another kernel and check that they both are added to the 188s # list of kernels from a GET request 188s kern2 = self.kern_api.start().json() 188s assert isinstance(kern2, dict) 188s r = self.kern_api.list() 188s kernels = r.json() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(kernels, list) 188s self.assertEqual(len(kernels), 2) 188s 188s # Interrupt a kernel 188s r = self.kern_api.interrupt(kern2['id']) 188s self.assertEqual(r.status_code, 204) 188s 188s # Restart a kernel 188s > r = self.kern_api.restart(kern2['id']) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 188s return self._req('POST', url_path_join(id, 'restart')) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1/restart 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 3, in 188s import contextlib 188s File "", line 1360, in _find_and_load 188s File "", line 1331, in _find_and_load_unlocked 188s File "", line 935, in _load_unlocked 188s File "", line 1019, in exec_module 188s File "", line 1152, in get_code 188s File "", line 781, in _compile_bytecode 188s KeyboardInterrupt 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-92c824c5-b996-4ad6-993a-b35bcf31b59c.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37773 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59307 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92c824c5-b996-4ad6-993a-b35bcf31b59c, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.080000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.780000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0yqib5kh/runtime/kernel-937b13ed-06f0-422e-a92c-8a6cbfc822b1.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42611 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35709 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 937b13ed-06f0-422e-a92c-8a6cbfc822b1, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.840000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.900000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 937b13ed-06f0-422e-a92c-8a6cbfc822b1 188s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1/interrupt (::1) 3.150000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 188s yield maybe_future(km.restart_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 188s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 188s await ensure_async(kernel.restart_kernel(now=now)) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 188s await self._async_shutdown_kernel(now=now, restart=True) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1/restart (::1) 11.820000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.560000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 188s yielded = ctx_run(next, result) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ________________________ KernelAPITest.test_no_kernels _________________________ 188s 188s self = 188s 188s def test_no_kernels(self): 188s """Make sure there are no kernels running at the start""" 188s kernels = self.kern_api.list().json() 188s > self.assertEqual(kernels, []) 188s E AssertionError: Lists differ: [{'id': '92c824c5-b996-4ad6-993a-b35bcf31b[281 chars]: 0}] != [] 188s E 188s E First list contains 2 additional elements. 188s E First extra element 0: 188s E {'id': '92c824c5-b996-4ad6-993a-b35bcf31b59c', 'name': 'python3', 'last_activity': '2026-01-30T08:09:15.472165Z', 'execution_state': 'starting', 'connections': 0} 188s E 188s E + [] 188s E - [{'connections': 0, 188s E - 'execution_state': 'starting', 188s E - 'id': '92c824c5-b996-4ad6-993a-b35bcf31b59c', 188s E - 'last_activity': '2026-01-30T08:09:15.472165Z', 188s E - 'name': 'python3'}, 188s E - {'connections': 0, 188s E - 'execution_state': 'starting', 188s E - 'id': '937b13ed-06f0-422e-a92c-8a6cbfc822b1', 188s E - 'last_activity': '2026-01-30T08:09:15.502489Z', 188s E - 'name': 'python3'}] 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.250000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92c824c5-b996-4ad6-993a-b35bcf31b59c 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/92c824c5-b996-4ad6-993a-b35bcf31b59c (::1) 1.310000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 937b13ed-06f0-422e-a92c-8a6cbfc822b1 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 937b13ed-06f0-422e-a92c-8a6cbfc822b1 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/937b13ed-06f0-422e-a92c-8a6cbfc822b1 (::1) 1.140000ms 188s ---------------------------- Captured log teardown ----------------------------- 188s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 188s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 188s _____________________ AsyncKernelAPITest.test_connections ______________________ 188s 188s self = 188s 188s def tearDown(self): 188s for k in self.kern_api.list().json(): 188s > self.kern_api.shutdown(k['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log setup ------------------------------ 188s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpxv1rcglh/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpxv1rcglh/etc/jupyter'] for config files 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxv1rcglh/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxv1rcglh/config 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxv1rcglh/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxv1rcglh/config 188s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpxv1rcglh/notebooks 188s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 188s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 188s WARNING NotebookApp:handlers.py:612 Forbidden 188s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-ac1b3d72-fe80-47f8-a3a2-469a8b26eec7.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44205 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58247 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 0.870000ms 188s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7/channels 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 188s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53809 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (starting) 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (busy) 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (idle) 188s 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/'}]} 188s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel ac1b3d72-fe80-47f8-a3a2-469a8b26eec7) to 5.4 (client). 188s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7/channels (::1) 591.090000ms 188s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7/channels 188s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58247 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53809 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44205 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57131 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53809 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44205 188s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 188s Setting websocket_ping_timeout=30000 188s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 2.740000ms 188s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (busy) 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (busy) 188s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (idle) 188s DEBUG NotebookApp:kernelmanager.py:423 activity on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7: status (idle) 188s DEBUG NotebookApp:handlers.py:579 Websocket closed ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:70f7760e-1026293b6bdcf500c644059f 188s INFO NotebookApp:kernelmanager.py:222 Starting buffering for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:70f7760e-1026293b6bdcf500c644059f 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:iopub 188s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:iopub 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:iopub 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 1.030000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 0.880000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7:70f7760e-1026293b6bdcf500c644059f 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 8.210000ms referer=None 188s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 188s 188s self = 188s 188s def tearDown(self): 188s for k in self.kern_api.list().json(): 188s > self.kern_api.shutdown(k['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c651625b-ae8f-402c-b24c-97626dfd588e 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-c651625b-ae8f-402c-b24c-97626dfd588e.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38883 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54819 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: c651625b-ae8f-402c-b24c-97626dfd588e, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.390000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.890000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 (::1) 2.040000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c651625b-ae8f-402c-b24c-97626dfd588e 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c651625b-ae8f-402c-b24c-97626dfd588e 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c651625b-ae8f-402c-b24c-97626dfd588e (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c651625b-ae8f-402c-b24c-97626dfd588e', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c651625b-ae8f-402c-b24c-97626dfd588e (::1) 15.860000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 188s import functools 188s File "/usr/lib/python3.13/functools.py", line 18, in 188s from collections import namedtuple 188s File "", line 1360, in _find_and_load 188s File "", line 1331, in _find_and_load_unlocked 188s File "", line 935, in _load_unlocked 188s File "", line 1019, in exec_module 188s File "", line 1152, in get_code 188s File "", line 781, in _compile_bytecode 188s KeyboardInterrupt 188s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 188s 188s self = 188s 188s def test_kernel_handler(self): 188s # GET kernel with given id 188s kid = self.kern_api.start().json()['id'] 188s r = self.kern_api.get(kid) 188s kern1 = r.json() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(kern1, dict) 188s self.assertIn('id', kern1) 188s self.assertEqual(kern1['id'], kid) 188s 188s # Request a bad kernel id and check that a JSON 188s # message is returned! 188s bad_id = '111-111-111-111-111' 188s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 188s self.kern_api.get(bad_id) 188s 188s # DELETE kernel with id 188s > r = self.kern_api.shutdown(kid) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43529 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44769 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.370000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 (::1) 0.980000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s 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 188s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 188s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.000000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 (::1) 6.910000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.480000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c651625b-ae8f-402c-b24c-97626dfd588e 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c651625b-ae8f-402c-b24c-97626dfd588e 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c651625b-ae8f-402c-b24c-97626dfd588e (::1) 0.890000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 (::1) 0.840000ms 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 188s import functools 188s File "/usr/lib/python3.13/functools.py", line 18, in 188s from collections import namedtuple 188s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 188s from _collections import deque 188s File "", line 1357, in _find_and_load 188s File "", line 417, in __enter__ 188s File "", line 456, in _get_module_lock 188s KeyboardInterrupt 188s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 188s 188s self = 188s 188s def test_main_kernel_handler(self): 188s # POST request 188s r = self.kern_api.start() 188s kern1 = r.json() 188s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 188s self.assertEqual(r.status_code, 201) 188s self.assertIsInstance(kern1, dict) 188s 188s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 188s expected_csp = '; '.join([ 188s "frame-ancestors 'self'", 188s 'report-uri ' + report_uri, 188s "default-src 'none'" 188s ]) 188s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 188s 188s # GET request 188s r = self.kern_api.list() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(r.json(), list) 188s self.assertEqual(r.json()[0]['id'], kern1['id']) 188s self.assertEqual(r.json()[0]['name'], kern1['name']) 188s 188s # create another kernel and check that they both are added to the 188s # list of kernels from a GET request 188s kern2 = self.kern_api.start().json() 188s assert isinstance(kern2, dict) 188s r = self.kern_api.list() 188s kernels = r.json() 188s self.assertEqual(r.status_code, 200) 188s assert isinstance(kernels, list) 188s self.assertEqual(len(kernels), 2) 188s 188s # Interrupt a kernel 188s r = self.kern_api.interrupt(kern2['id']) 188s self.assertEqual(r.status_code, 204) 188s 188s # Restart a kernel 188s > r = self.kern_api.restart(kern2['id']) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 188s return self._req('POST', url_path_join(id, 'restart')) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e/restart 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Fatal Python error: init_import_site: Failed to import the site module 188s Python runtime state: initialized 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/site.py", line 735, in 188s main() 188s File "/usr/lib/python3.13/site.py", line 728, in main 188s execsitecustomize() 188s File "/usr/lib/python3.13/site.py", line 667, in execsitecustomize 188s import sitecustomize 188s File "/usr/lib/python3.13/sitecustomize.py", line 3, in 188s import apport_python_hook 188s File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 14, in 188s import types 188s File "", line 1360, in _find_and_load 188s File "", line 1322, in _find_and_load_unlocked 188s File "", line 1262, in _find_spec 188s File "", line 1556, in find_spec 188s File "", line 1530, in _get_spec 188s File "", line 1657, in find_spec 188s File "", line 131, in _path_join 188s KeyboardInterrupt 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-fe721ab9-9577-44ec-8c73-0723d7c36feb.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44839 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46101 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe721ab9-9577-44ec-8c73-0723d7c36feb, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.190000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxv1rcglh/runtime/kernel-60651661-fb4a-46cb-882c-821a0aec9a5e.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40185 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44545 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 60651661-fb4a-46cb-882c-821a0aec9a5e, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.040000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 60651661-fb4a-46cb-882c-821a0aec9a5e 188s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e/interrupt (::1) 2.310000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 188s yield maybe_future(km.restart_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 188s result = coro.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 188s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 188s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 188s yield self # This tells Task to wait for completion. 188s ^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 188s await ensure_async(kernel.restart_kernel(now=now)) 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 188s await self._async_shutdown_kernel(now=now, restart=True) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e/restart (::1) 7.300000ms referer=None 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe721ab9-9577-44ec-8c73-0723d7c36feb 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe721ab9-9577-44ec-8c73-0723d7c36feb 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 188s yield maybe_future(km.shutdown_kernel(kernel_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 188s 188s self = 188s 188s def test_no_kernels(self): 188s """Make sure there are no kernels running at the start""" 188s kernels = self.kern_api.list().json() 188s > self.assertEqual(kernels, []) 188s E AssertionError: Lists differ: [{'id': 'fe721ab9-9577-44ec-8c73-0723d7c36[281 chars]: 0}] != [] 188s E 188s E First list contains 2 additional elements. 188s E First extra element 0: 188s E {'id': 'fe721ab9-9577-44ec-8c73-0723d7c36feb', 'name': 'python3', 'last_activity': '2026-01-30T08:09:16.565753Z', 'execution_state': 'starting', 'connections': 0} 188s E 188s E + [] 188s E - [{'connections': 0, 188s E - 'execution_state': 'starting', 188s E - 'id': 'fe721ab9-9577-44ec-8c73-0723d7c36feb', 188s E - 'last_activity': '2026-01-30T08:09:16.565753Z', 188s E - 'name': 'python3'}, 188s E - {'connections': 0, 188s E - 'execution_state': 'starting', 188s E - 'id': '60651661-fb4a-46cb-882c-821a0aec9a5e', 188s E - 'last_activity': '2026-01-30T08:09:16.589492Z', 188s E - 'name': 'python3'}] 188s 188s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.050000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.980000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe721ab9-9577-44ec-8c73-0723d7c36feb 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe721ab9-9577-44ec-8c73-0723d7c36feb 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fe721ab9-9577-44ec-8c73-0723d7c36feb (::1) 0.980000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 60651661-fb4a-46cb-882c-821a0aec9a5e 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 60651661-fb4a-46cb-882c-821a0aec9a5e 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/60651661-fb4a-46cb-882c-821a0aec9a5e (::1) 1.030000ms 188s ---------------------------- Captured log teardown ----------------------------- 188s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe721ab9-9577-44ec-8c73-0723d7c36feb 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac1b3d72-fe80-47f8-a3a2-469a8b26eec7 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c651625b-ae8f-402c-b24c-97626dfd588e 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18fdccaa-5a7a-4e41-87e8-fcdcc3a86c14 188s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 188s __________________________ SessionAPITest.test_create __________________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log setup ------------------------------ 188s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpcvb41kxs/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpcvb41kxs/etc/jupyter'] for config files 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcvb41kxs/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcvb41kxs/config 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcvb41kxs/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcvb41kxs/config 188s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpcvb41kxs/notebooks 188s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 188s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 188s WARNING NotebookApp:handlers.py:612 Forbidden 188s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.380000ms referer=None 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-82a01d63-b82a-4930-a8c2-3f35559886da.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43479 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45471 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82a01d63-b82a-4930-a8c2-3f35559886da, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpcvb41kxs/notebooks/foo'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 24.900000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.760000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7 (::1) 2.630000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82a01d63-b82a-4930-a8c2-3f35559886da 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82a01d63-b82a-4930-a8c2-3f35559886da 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7 (::1) 11.620000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "/usr/lib/python3.13/re/__init__.py", line 144, in 188s class RegexFlag: 188s ...<11 lines>... 188s _numeric_repr_ = hex 188s KeyboardInterrupt 188s __________________ SessionAPITest.test_create_console_session __________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ef83ffc1-d5c5-49b4-b35f-1b03c443e8ec 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-42d4197f-becd-4453-9992-19c6c95986b7.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45181 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36335 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42d4197f-becd-4453-9992-19c6c95986b7, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpcvb41kxs/notebooks/foo'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.210000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82a01d63-b82a-4930-a8c2-3f35559886da 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82a01d63-b82a-4930-a8c2-3f35559886da 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/21406f6b-dff0-4d9d-9c48-39cf39c01be7 (::1) 3.440000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42d4197f-becd-4453-9992-19c6c95986b7 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42d4197f-becd-4453-9992-19c6c95986b7 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ef83ffc1-d5c5-49b4-b35f-1b03c443e8ec (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ef83ffc1-d5c5-49b4-b35f-1b03c443e8ec', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ef83ffc1-d5c5-49b4-b35f-1b03c443e8ec (::1) 9.100000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "/usr/lib/python3.13/re/__init__.py", line 125, in 188s import enum 188s File "/usr/lib/python3.13/enum.py", line 1349, in 188s class IntEnum(int, ReprEnum): 188s ...<2 lines>... 188s """ 188s File "/usr/lib/python3.13/enum.py", line 555, in __new__ 188s classdict['_value_repr_'] = metacls._find_data_repr_(cls, bases) 188s ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/enum.py", line 965, in _find_data_repr_ 188s @classmethod 188s 188s KeyboardInterrupt 188s ____________________ SessionAPITest.test_create_deprecated _____________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/128dca01-9d80-41b7-b125-1f6177e02e91 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56517 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38429 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpcvb41kxs/notebooks/foo'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.420000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.400000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42d4197f-becd-4453-9992-19c6c95986b7 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42d4197f-becd-4453-9992-19c6c95986b7 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ef83ffc1-d5c5-49b4-b35f-1b03c443e8ec (::1) 3.080000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/128dca01-9d80-41b7-b125-1f6177e02e91 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/128dca01-9d80-41b7-b125-1f6177e02e91', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/128dca01-9d80-41b7-b125-1f6177e02e91 (::1) 7.890000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "/usr/lib/python3.13/re/__init__.py", line 125, in 188s import enum 188s File "/usr/lib/python3.13/enum.py", line 1355, in 188s class StrEnum(str, ReprEnum): 188s ...<30 lines>... 188s return name.lower() 188s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 188s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 188s KeyboardInterrupt 188s ___________________ SessionAPITest.test_create_file_session ____________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-9c026b0d-4ea3-4cad-a241-348b96ca02da.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42041 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50203 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9c026b0d-4ea3-4cad-a241-348b96ca02da, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpcvb41kxs/notebooks/foo'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.690000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba9746d1-3e6c-4db5-89f7-ec46b1eb3a95 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/128dca01-9d80-41b7-b125-1f6177e02e91 (::1) 1.410000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4 (::1) 8.120000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "/usr/lib/python3.13/re/__init__.py", line 125, in 188s import enum 188s File "/usr/lib/python3.13/enum.py", line 1349, in 188s class IntEnum(int, ReprEnum): 188s ...<2 lines>... 188s """ 188s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 188s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 188s KeyboardInterrupt 188s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 188s 188s self = 188s 188s def test_create_with_kernel_id(self): 188s # create a new kernel 188s r = self.request('POST', 'api/kernels') 188s r.raise_for_status() 188s kernel = r.json() 188s 188s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 188s self.assertEqual(resp.status_code, 201) 188s newsession = resp.json() 188s self.assertIn('id', newsession) 188s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 188s self.assertEqual(newsession['kernel']['id'], kernel['id']) 188s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 188s 188s sessions = self.sess_api.list().json() 188s > self.assertEqual(sessions, [newsession]) 188s E AssertionError: Lists differ: [{'id': '5548d58e-c84c-4991-9499-43ca7b187ce4', 'p[553 chars]ne}}] != [{'id': '22098840-2080-4a6c-9e60-908e7edcc6f4', 'p[279 chars]ne}}] 188s E 188s E First differing element 0: 188s E {'id': '5548d58e-c84c-4991-9499-43ca7b187ce4', 'p[218 chars]: 0}} 188s E {'id': '22098840-2080-4a6c-9e60-908e7edcc6f4', 'p[278 chars]one}} 188s E 188s E First list contains 1 additional elements. 188s E First extra element 1: 188s E {'id': '22098840-2080-4a6c-9e60-908e7edcc6f4', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8d5b6ab2-1a59-427e-80f6-622bf179994a', 'name': 'python3', 'last_activity': '2026-01-30T08:09:17.101856Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 188s E 188s E Diff is 830 characters long. Set self.maxDiff to None to see it. 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-8d5b6ab2-1a59-427e-80f6-622bf179994a.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56609 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44963 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8d5b6ab2-1a59-427e-80f6-622bf179994a, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.990000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.470000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.160000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c026b0d-4ea3-4cad-a241-348b96ca02da 188s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5548d58e-c84c-4991-9499-43ca7b187ce4 (::1) 1.080000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 7.570000ms referer=None 188s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ----------------------------- Captured stderr call ----------------------------- 188s Traceback (most recent call last): 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.550000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-5fc982ec-3c6a-47b5-bc89-79b900a114a2.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54107 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52331 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5fc982ec-3c6a-47b5-bc89-79b900a114a2, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.980000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8d5b6ab2-1a59-427e-80f6-622bf179994a 188s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 1.510000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.360000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.740000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fc982ec-3c6a-47b5-bc89-79b900a114a2 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fc982ec-3c6a-47b5-bc89-79b900a114a2 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 8.390000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 328, in 188s @functools.lru_cache(maxsize=512) 188s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 188s File "/usr/lib/python3.13/functools.py", line 547, in decorating_function 188s return update_wrapper(wrapper, user_function) 188s File "/usr/lib/python3.13/functools.py", line 59, in update_wrapper 188s getattr(wrapper, attr).update(getattr(wrapped, attr, {})) 188s ~~~~~~~^^^^^^^^^^^^^^^ 188s KeyboardInterrupt 188s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.870000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcvb41kxs/runtime/kernel-92f8d926-26c8-4145-b2ca-a1273d7e253d.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58097 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56101 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92f8d926-26c8-4145-b2ca-a1273d7e253d, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpcvb41kxs/notebooks/foo'} 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fc982ec-3c6a-47b5-bc89-79b900a114a2 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fc982ec-3c6a-47b5-bc89-79b900a114a2 188s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 17.130000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.330000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92f8d926-26c8-4145-b2ca-a1273d7e253d 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92f8d926-26c8-4145-b2ca-a1273d7e253d 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 188s yielded = self.gen.send(value) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 188s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 188s stopper = ensure_async(km.shutdown_kernel(now, restart)) 188s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 188s return _runner_map[name].run(inner) 188s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 188s return fut.result(None) 188s ~~~~~~~~~~^^^^^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 188s return self.__get_result() 188s ~~~~~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 188s raise self._exception 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error 188s ERROR NotebookApp:log.py:55 { 188s "Host": "localhost:12341", 188s "Accept": "*/*", 188s "User-Agent": "python-requests/2.32.5" 188s } 188s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/22098840-2080-4a6c-9e60-908e7edcc6f4 (::1) 7.320000ms referer=None 188s --------------------------- Captured stderr teardown --------------------------- 188s Traceback (most recent call last): 188s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 188s return _run_code(code, main_globals, None, 188s "__main__", mod_spec) 188s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 188s exec(code, run_globals) 188s ~~~~^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 188s from pathlib import Path 188s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 188s from ._abc import * 188s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 188s from glob import _Globber, _no_recurse_symlinks 188s File "/usr/lib/python3.13/glob.py", line 5, in 188s import re 188s File "", line 1360, in _find_and_load 188s File "", line 1322, in _find_and_load_unlocked 188s File "", line 1256, in _find_spec 188s File "", line 1226, in __exit__ 188s KeyboardInterrupt 188s _______________________ AsyncSessionAPITest.test_create ________________________ 188s 188s @self.addCleanup 188s def cleanup_sessions(): 188s for session in self.sess_api.list().json(): 188s > self.sess_api.delete(session['id']) 188s 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 188s return self._req('DELETE', id) 188s ^^^^^^^^^^^^^^^^^^^^^^^ 188s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 188s response.raise_for_status() 188s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 188s 188s self = 188s 188s def raise_for_status(self): 188s """Raises :class:`HTTPError`, if one occurred.""" 188s 188s http_error_msg = "" 188s if isinstance(self.reason, bytes): 188s # We attempt to decode utf-8 first because some servers 188s # choose to localize their reason strings. If the string 188s # isn't utf-8, we fall back to iso-8859-1 for all other 188s # encodings. (See PR #3538) 188s try: 188s reason = self.reason.decode("utf-8") 188s except UnicodeDecodeError: 188s reason = self.reason.decode("iso-8859-1") 188s else: 188s reason = self.reason 188s 188s if 400 <= self.status_code < 500: 188s http_error_msg = ( 188s f"{self.status_code} Client Error: {reason} for url: {self.url}" 188s ) 188s 188s elif 500 <= self.status_code < 600: 188s http_error_msg = ( 188s f"{self.status_code} Server Error: {reason} for url: {self.url}" 188s ) 188s 188s if http_error_msg: 188s > raise HTTPError(http_error_msg, response=self) 188s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c411a2bf-39e2-4464-a007-881d68ae12ba 188s 188s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 188s ------------------------------ Captured log setup ------------------------------ 188s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpfhf06vy2/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpfhf06vy2/etc/jupyter'] for config files 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfhf06vy2/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpfhf06vy2/config 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfhf06vy2/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 188s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpfhf06vy2/config 188s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpfhf06vy2/notebooks 188s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 188s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 188s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 188s WARNING NotebookApp:handlers.py:612 Forbidden 188s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.420000ms referer=None 188s ------------------------------ Captured log call ------------------------------- 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 188s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78.json'] 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56665 188s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36945 188s INFO NotebookApp:kernelmanager.py:179 Kernel started: c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78, name: python3 188s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfhf06vy2/notebooks/foo'} 188s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.410000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/c411a2bf-39e2-4464-a007-881d68ae12ba (::1) 0.830000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.780000ms 188s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 188s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78 188s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78 188s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c411a2bf-39e2-4464-a007-881d68ae12ba (::1) 188s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c411a2bf-39e2-4464-a007-881d68ae12ba', version='HTTP/1.1', remote_ip='::1') 188s Traceback (most recent call last): 188s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 188s result = await result 188s ^^^^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 188s future.result() 188s ~~~~~~~~~~~~~^^ 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 188s yield maybe_future(sm.delete_session(session_id)) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 188s yielded = self.gen.throw(exc) 188s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 188s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 188s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 188s value = future.result() 188s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 188s raise self._exception.with_traceback(self._exception_tb) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 188s result = coro.send(None) 188s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 188s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 188s raise km.ready.exception() # type: ignore[misc] 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 188s await kernel_awaitable 188s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 188s result = await obj 188s ^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 188s raise e 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 188s out = await method(self, *args, **kwargs) 188s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 188s await self._async_finish_shutdown(restart=restart) 188s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 188s await asyncio.wait_for( 188s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 188s ) 188s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 188s async with timeouts.timeout(timeout): 188s ~~~~~~~~~~~~~~~~^^^^^^^^^ 188s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 188s raise RuntimeError("Timeout should be used inside a task") 188s RuntimeError: Timeout should be used inside a task 188s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 188s gc.collect() 188s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 189s 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 126, in 189s from . import _compiler, _parser 189s File "", line 1360, in _find_and_load 189s File "", line 1322, in _find_and_load_unlocked 189s File "", line 1262, in _find_spec 189s File "", line 1556, in find_spec 189s File "", line 1530, in _get_spec 189s File "", line 1633, in find_spec 189s File "", line 1676, in _fill_cache 189s KeyboardInterrupt 189s _______________ AsyncSessionAPITest.test_create_console_session ________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/15a292aa-211c-4c8e-87dd-95b79e848796 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-b221421a-6123-4472-a766-56ed342131de.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59113 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48835 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: b221421a-6123-4472-a766-56ed342131de, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfhf06vy2/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.560000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.670000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c24f7b2e-6ca2-4293-bdf5-8cf52cb9db78 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c411a2bf-39e2-4464-a007-881d68ae12ba (::1) 2.720000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b221421a-6123-4472-a766-56ed342131de 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b221421a-6123-4472-a766-56ed342131de 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/15a292aa-211c-4c8e-87dd-95b79e848796 (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/15a292aa-211c-4c8e-87dd-95b79e848796', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/15a292aa-211c-4c8e-87dd-95b79e848796 (::1) 7.840000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 125, in 189s import enum 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1115, in get_code 189s File "", line 1215, in get_data 189s KeyboardInterrupt 189s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bb792e19-bf0f-4614-ad01-65bf195c34fc 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-661b4d37-a230-4277-9ccc-8ba151673c89.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38279 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45849 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 661b4d37-a230-4277-9ccc-8ba151673c89, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfhf06vy2/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.100000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b221421a-6123-4472-a766-56ed342131de 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b221421a-6123-4472-a766-56ed342131de 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/15a292aa-211c-4c8e-87dd-95b79e848796 (::1) 2.800000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 661b4d37-a230-4277-9ccc-8ba151673c89 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 661b4d37-a230-4277-9ccc-8ba151673c89 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb792e19-bf0f-4614-ad01-65bf195c34fc (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb792e19-bf0f-4614-ad01-65bf195c34fc', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bb792e19-bf0f-4614-ad01-65bf195c34fc (::1) 7.960000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 125, in 189s import enum 189s File "/usr/lib/python3.13/enum.py", line 1398, in 189s class FlagBoundary(StrEnum): 189s ...<10 lines>... 189s KEEP = auto() 189s File "/usr/lib/python3.13/enum.py", line 1408, in FlagBoundary 189s EJECT = auto() 189s ^^^^^ 189s File "/usr/lib/python3.13/enum.py", line 363, in __setitem__ 189s if self._cls_name is not None and _is_private(self._cls_name, key): 189s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3.13/enum.py", line 78, in _is_private 189s def _is_private(cls_name, name): 189s 189s KeyboardInterrupt 189s _________________ AsyncSessionAPITest.test_create_file_session _________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-f2ddcc0a-5b7e-4090-8148-9ea295f92f88.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39859 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44183 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: f2ddcc0a-5b7e-4090-8148-9ea295f92f88, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpfhf06vy2/notebooks/foo'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.050000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.480000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 661b4d37-a230-4277-9ccc-8ba151673c89 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 661b4d37-a230-4277-9ccc-8ba151673c89 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bb792e19-bf0f-4614-ad01-65bf195c34fc (::1) 2.790000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2ddcc0a-5b7e-4090-8148-9ea295f92f88 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2ddcc0a-5b7e-4090-8148-9ea295f92f88 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d (::1) 8.460000ms referer=None 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "/usr/lib/python3.13/glob.py", line 5, in 189s import re 189s File "/usr/lib/python3.13/re/__init__.py", line 125, in 189s import enum 189s File "/usr/lib/python3.13/enum.py", line 1109, in 189s class Enum(metaclass=EnumType): 189s ...<230 lines>... 189s return self._value_ 189s File "/usr/lib/python3.13/enum.py", line 1338, in Enum 189s def value(self): 189s """The value of the Enum member.""" 189s return self._value_ 189s File "/usr/lib/python3.13/enum.py", line 460, in __setitem__ 189s super().__setitem__(key, value) 189s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 189s KeyboardInterrupt 189s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 189s 189s self = 189s 189s def test_create_with_kernel_id(self): 189s # create a new kernel 189s r = self.request('POST', 'api/kernels') 189s r.raise_for_status() 189s kernel = r.json() 189s 189s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 189s self.assertEqual(resp.status_code, 201) 189s newsession = resp.json() 189s self.assertIn('id', newsession) 189s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 189s self.assertEqual(newsession['kernel']['id'], kernel['id']) 189s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 189s 189s sessions = self.sess_api.list().json() 189s > self.assertEqual(sessions, [newsession]) 189s E AssertionError: Lists differ: [{'id': '810bd185-da22-4b20-98a8-d0afb534f51d', 'p[553 chars]ne}}] != [{'id': '08a7ca2b-61a8-4925-9536-f557b1d8e09f', 'p[279 chars]ne}}] 189s E 189s E First differing element 0: 189s E {'id': '810bd185-da22-4b20-98a8-d0afb534f51d', 'p[218 chars]: 0}} 189s E {'id': '08a7ca2b-61a8-4925-9536-f557b1d8e09f', 'p[278 chars]one}} 189s E 189s E First list contains 1 additional elements. 189s E First extra element 1: 189s E {'id': '08a7ca2b-61a8-4925-9536-f557b1d8e09f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'b6d36b64-a560-4b76-9f1b-70f5cf271453', 'name': 'python3', 'last_activity': '2026-01-30T08:09:17.716454Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 189s E 189s E Diff is 830 characters long. Set self.maxDiff to None to see it. 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-b6d36b64-a560-4b76-9f1b-70f5cf271453.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52449 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44095 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: b6d36b64-a560-4b76-9f1b-70f5cf271453, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.770000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.730000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2ddcc0a-5b7e-4090-8148-9ea295f92f88 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2ddcc0a-5b7e-4090-8148-9ea295f92f88 189s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/810bd185-da22-4b20-98a8-d0afb534f51d (::1) 1.020000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6d36b64-a560-4b76-9f1b-70f5cf271453 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6d36b64-a560-4b76-9f1b-70f5cf271453 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 7.780000ms referer=None 189s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ----------------------------- Captured stderr call ----------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 189s from ._local import * 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-75bc9e1f-241e-4834-94b8-637dad109601.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51427 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52767 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 75bc9e1f-241e-4834-94b8-637dad109601, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.590000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b6d36b64-a560-4b76-9f1b-70f5cf271453 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b6d36b64-a560-4b76-9f1b-70f5cf271453 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 2.960000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.550000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.520000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75bc9e1f-241e-4834-94b8-637dad109601 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75bc9e1f-241e-4834-94b8-637dad109601 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s ERROR NotebookApp:log.py:55 { 189s "Host": "localhost:12341", 189s "Accept": "*/*", 189s "User-Agent": "python-requests/2.32.5" 189s } 189s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 11.970000ms referer=None 189s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 189s 189s @self.addCleanup 189s def cleanup_sessions(): 189s for session in self.sess_api.list().json(): 189s > self.sess_api.delete(session['id']) 189s 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 189s return self._req('DELETE', id) 189s ^^^^^^^^^^^^^^^^^^^^^^^ 189s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 189s response.raise_for_status() 189s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 189s 189s self = 189s 189s def raise_for_status(self): 189s """Raises :class:`HTTPError`, if one occurred.""" 189s 189s http_error_msg = "" 189s if isinstance(self.reason, bytes): 189s # We attempt to decode utf-8 first because some servers 189s # choose to localize their reason strings. If the string 189s # isn't utf-8, we fall back to iso-8859-1 for all other 189s # encodings. (See PR #3538) 189s try: 189s reason = self.reason.decode("utf-8") 189s except UnicodeDecodeError: 189s reason = self.reason.decode("iso-8859-1") 189s else: 189s reason = self.reason 189s 189s if 400 <= self.status_code < 500: 189s http_error_msg = ( 189s f"{self.status_code} Client Error: {reason} for url: {self.url}" 189s ) 189s 189s elif 500 <= self.status_code < 600: 189s http_error_msg = ( 189s f"{self.status_code} Server Error: {reason} for url: {self.url}" 189s ) 189s 189s if http_error_msg: 189s > raise HTTPError(http_error_msg, response=self) 189s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f 189s 189s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 189s ------------------------------ Captured log call ------------------------------- 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.980000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 189s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpfhf06vy2/runtime/kernel-7e91bada-b51a-409f-a36b-0f3630ac368f.json'] 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39713 189s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55321 189s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7e91bada-b51a-409f-a36b-0f3630ac368f, name: python3 189s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpfhf06vy2/notebooks/foo'} 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75bc9e1f-241e-4834-94b8-637dad109601 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75bc9e1f-241e-4834-94b8-637dad109601 189s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 16.670000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.710000ms 189s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 189s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7e91bada-b51a-409f-a36b-0f3630ac368f 189s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7e91bada-b51a-409f-a36b-0f3630ac368f 189s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f (::1) 189s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08a7ca2b-61a8-4925-9536-f557b1d8e09f', version='HTTP/1.1', remote_ip='::1') 189s Traceback (most recent call last): 189s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 189s result = await result 189s ^^^^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 189s future.result() 189s ~~~~~~~~~~~~~^^ 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 189s yield maybe_future(sm.delete_session(session_id)) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 189s yielded = self.gen.throw(exc) 189s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 189s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 189s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 189s value = future.result() 189s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 189s raise self._exception.with_traceback(self._exception_tb) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 189s result = coro.send(None) 189s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 189s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 189s raise km.ready.exception() # type: ignore[misc] 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 189s await kernel_awaitable 189s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 189s result = await obj 189s ^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 189s raise e 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 189s out = await method(self, *args, **kwargs) 189s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 189s await self._async_finish_shutdown(restart=restart) 189s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 189s await asyncio.wait_for( 189s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 189s ) 189s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 189s async with timeouts.timeout(timeout): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^ 189s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 189s raise RuntimeError("Timeout should be used inside a task") 189s RuntimeError: Timeout should be used inside a task 189s WARNING NotebookApp:handlers.py:612 Unhandled error 189s --------------------------- Captured stderr teardown --------------------------- 189s Traceback (most recent call last): 189s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 189s return _run_code(code, main_globals, None, 189s "__main__", mod_spec) 189s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 189s exec(code, run_globals) 189s ~~~~^^^^^^^^^^^^^^^^^^^ 189s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 189s from pathlib import Path 189s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 189s from ._abc import * 189s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 189s from glob import _Globber, _no_recurse_symlinks 189s File "", line 1360, in _find_and_load 189s File "", line 1331, in _find_and_load_unlocked 189s File "", line 935, in _load_unlocked 189s File "", line 1019, in exec_module 189s File "", line 1152, in get_code 189s File "", line 781, in _compile_bytecode 189s KeyboardInterrupt 189s =============================== warnings summary =============================== 189s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 189s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 189s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 189s return LooseVersion(v) >= LooseVersion(check) 189s 189s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 189s services/kernels/tests/test_kernels_api.py: 72 warnings 189s services/sessions/tests/test_sessions_api.py: 96 warnings 189s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 189s dt = unaware(*args, **kwargs) 189s 189s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 189s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 189s pytestmark = pytest.mark.integration_tests 189s 189s services/kernels/tests/test_kernels_api.py: 6 warnings 189s services/sessions/tests/test_sessions_api.py: 6 warnings 189s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 189s policy = events.get_event_loop_policy() 189s 189s services/kernels/tests/test_kernels_api.py: 24 warnings 189s services/sessions/tests/test_sessions_api.py: 19 warnings 189s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 189s loop = events.get_event_loop_policy().get_event_loop() 189s 189s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 189s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 189s loop.make_current() 189s 189s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 189s =========================== short test summary info ============================ 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 189s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 189s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 189s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 189s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 189s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 189s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 189s ===== 23 failed, 2 passed, 305 deselected, 228 warnings, 4 errors in 6.31s ===== 189s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 189s *** 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 193s ============================= test session starts ============================== 193s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 193s rootdir: /tmp/autopkgtest.crwF8L/autopkgtest_tmp 193s plugins: typeguard-4.4.4 193s collected 330 items / 307 deselected / 23 selected 193s run-last-failure: rerun previous 23 failures 193s 195s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 196s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 196s 196s ==================================== ERRORS ==================================== 196s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-0d631fa2-f645-42fd-9e22-dd38af1a3898.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55949 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39819 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0d631fa2-f645-42fd-9e22-dd38af1a3898, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.350000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-d37accbb-3f4c-4f85-8c99-b47f9f274166.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38999 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40303 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: d37accbb-3f4c-4f85-8c99-b47f9f274166, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.900000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d37accbb-3f4c-4f85-8c99-b47f9f274166 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166/interrupt (::1) 2.040000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166/restart (::1) 11.870000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.550000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 (::1) 6.670000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 196s import jupyter_client 196s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 196s from .asynchronous import AsyncKernelClient 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 196s from .client import AsyncKernelClient # noqa 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 196s import zmq.asyncio 196s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 196s import asyncio 196s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 196s from .base_events import * 196s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 196s import concurrent.futures 196s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 196s from concurrent.futures._base import (FIRST_COMPLETED, 196s ...<9 lines>... 196s as_completed) 196s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 196s import logging 196s File "/usr/lib/python3.13/logging/__init__.py", line 477, in 196s class StrFormatStyle(PercentStyle): 196s ...<30 lines>... 196s raise ValueError('invalid format: no fields') 196s File "/usr/lib/python3.13/logging/__init__.py", line 483, in StrFormatStyle 196s field_spec = re.compile(r'^(\d+|\w+)(\.\w+|\[[^]]+\])*$') 196s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 196s return _compile(pattern, flags) 196s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 196s p = _compiler.compile(pattern, flags) 196s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 196s code = _code(p, flags) 196s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 196s _compile(code, p.data, flags) 196s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3.13/re/_compiler.py", line 129, in _compile 196s emit((group-1)*2+1) 196s ~~~~^^^^^^^^^^^^^^^ 196s KeyboardInterrupt 196s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 196s import functools 196s File "/usr/lib/python3.13/functools.py", line 18, in 196s from collections import namedtuple 196s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 196s from _collections import deque 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 946, in _load_unlocked 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-37799acc-4ec7-4fd8-b112-5a985347d615.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39611 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36997 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37799acc-4ec7-4fd8-b112-5a985347d615, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.640000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.670000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-e078aa76-baae-488d-bcc8-40aaee5194e3.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39325 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57731 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: e078aa76-baae-488d-bcc8-40aaee5194e3, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.650000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e078aa76-baae-488d-bcc8-40aaee5194e3 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3/interrupt (::1) 6.130000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 196s result = coro.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 196s yield self # This tells Task to wait for completion. 196s ^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3/restart (::1) 8.730000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37799acc-4ec7-4fd8-b112-5a985347d615 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37799acc-4ec7-4fd8-b112-5a985347d615 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 (::1) 6.870000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 196s from ipykernel import kernelapp as app 196s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 196s from .connect import * # noqa: F403 196s ^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 196s import jupyter_client 196s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 196s from .asynchronous import AsyncKernelClient 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 196s from .client import AsyncKernelClient # noqa 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 196s import zmq.asyncio 196s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 196s import asyncio 196s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 196s from .base_events import * 196s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 196s import ssl 196s File "/usr/lib/python3.13/ssl.py", line 100, in 196s import _ssl # if we can't import it, let the error propagate 196s ^^^^^^^^^^^ 196s KeyboardInterrupt 196s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-b333d0be-775a-413d-b8d2-33e33917833f.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34463 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46891 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: b333d0be-775a-413d-b8d2-33e33917833f, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.550000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.120000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/24562316-ceba-4c73-8caa-1ea7d6228b80 (::1) 2.990000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b333d0be-775a-413d-b8d2-33e33917833f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b333d0be-775a-413d-b8d2-33e33917833f 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 196s import warnings 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-7c4e87ee-19d9-46af-91b5-447d5aa8770c.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51089 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37641 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c4e87ee-19d9-46af-91b5-447d5aa8770c, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.760000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.910000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba5b7b12-a827-4218-b889-600e45d7fab2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba5b7b12-a827-4218-b889-600e45d7fab2 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841 (::1) 2.470000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 196s from ._local import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s =================================== FAILURES =================================== 196s ______________________ KernelAPITest.test_default_kernel _______________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1ae3cce6-2e42-462c-846a-de9cd64848e0 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp1dlf5uza/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp1dlf5uza/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1dlf5uza/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp1dlf5uza/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1dlf5uza/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp1dlf5uza/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp1dlf5uza/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.890000ms referer=None 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-1ae3cce6-2e42-462c-846a-de9cd64848e0.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37049 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45107 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1ae3cce6-2e42-462c-846a-de9cd64848e0, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 53.700000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.180000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ae3cce6-2e42-462c-846a-de9cd64848e0 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ae3cce6-2e42-462c-846a-de9cd64848e0 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1ae3cce6-2e42-462c-846a-de9cd64848e0 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1ae3cce6-2e42-462c-846a-de9cd64848e0', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1ae3cce6-2e42-462c-846a-de9cd64848e0 (::1) 10.510000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 196s import functools 196s File "/usr/lib/python3.13/functools.py", line 18, in 196s from collections import namedtuple 196s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 196s from operator import eq as _eq 196s File "/usr/lib/python3.13/operator.py", line 302, in 196s class methodcaller: 196s ...<31 lines>... 196s return partial(self.__class__, self._name, **self._kwargs), self._args 196s KeyboardInterrupt 196s ______________________ KernelAPITest.test_kernel_handler _______________________ 196s 196s self = 196s 196s def test_kernel_handler(self): 196s # GET kernel with given id 196s kid = self.kern_api.start().json()['id'] 196s r = self.kern_api.get(kid) 196s kern1 = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kern1, dict) 196s self.assertIn('id', kern1) 196s self.assertEqual(kern1['id'], kid) 196s 196s # Request a bad kernel id and check that a JSON 196s # message is returned! 196s bad_id = '111-111-111-111-111' 196s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 196s self.kern_api.get(bad_id) 196s 196s # DELETE kernel with id 196s > r = self.kern_api.shutdown(kid) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-49811355-9934-484c-8d1e-60a8bc83ef00.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34469 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57619 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49811355-9934-484c-8d1e-60a8bc83ef00, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00 (::1) 0.860000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.620000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49811355-9934-484c-8d1e-60a8bc83ef00 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49811355-9934-484c-8d1e-60a8bc83ef00 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00 (::1) 7.900000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1ae3cce6-2e42-462c-846a-de9cd64848e0 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1ae3cce6-2e42-462c-846a-de9cd64848e0 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1ae3cce6-2e42-462c-846a-de9cd64848e0 (::1) 2.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49811355-9934-484c-8d1e-60a8bc83ef00 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49811355-9934-484c-8d1e-60a8bc83ef00 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/49811355-9934-484c-8d1e-60a8bc83ef00 (::1) 0.900000ms 196s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 196s 196s self = 196s 196s def test_main_kernel_handler(self): 196s # POST request 196s r = self.kern_api.start() 196s kern1 = r.json() 196s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 196s self.assertEqual(r.status_code, 201) 196s self.assertIsInstance(kern1, dict) 196s 196s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 196s expected_csp = '; '.join([ 196s "frame-ancestors 'self'", 196s 'report-uri ' + report_uri, 196s "default-src 'none'" 196s ]) 196s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 196s 196s # GET request 196s r = self.kern_api.list() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(r.json(), list) 196s self.assertEqual(r.json()[0]['id'], kern1['id']) 196s self.assertEqual(r.json()[0]['name'], kern1['name']) 196s 196s # create another kernel and check that they both are added to the 196s # list of kernels from a GET request 196s kern2 = self.kern_api.start().json() 196s assert isinstance(kern2, dict) 196s r = self.kern_api.list() 196s kernels = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kernels, list) 196s self.assertEqual(len(kernels), 2) 196s 196s # Interrupt a kernel 196s r = self.kern_api.interrupt(kern2['id']) 196s self.assertEqual(r.status_code, 204) 196s 196s # Restart a kernel 196s > r = self.kern_api.restart(kern2['id']) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 196s return self._req('POST', url_path_join(id, 'restart')) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166/restart 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-0d631fa2-f645-42fd-9e22-dd38af1a3898.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55949 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39819 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0d631fa2-f645-42fd-9e22-dd38af1a3898, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.350000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp1dlf5uza/runtime/kernel-d37accbb-3f4c-4f85-8c99-b47f9f274166.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38999 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40303 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: d37accbb-3f4c-4f85-8c99-b47f9f274166, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.900000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d37accbb-3f4c-4f85-8c99-b47f9f274166 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166/interrupt (::1) 2.040000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166/restart (::1) 11.870000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.550000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 196s yielded = ctx_run(next, result) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 (::1) 6.670000ms referer=None 196s ________________________ KernelAPITest.test_no_kernels _________________________ 196s 196s self = 196s 196s def test_no_kernels(self): 196s """Make sure there are no kernels running at the start""" 196s kernels = self.kern_api.list().json() 196s > self.assertEqual(kernels, []) 196s E AssertionError: Lists differ: [{'id': '0d631fa2-f645-42fd-9e22-dd38af1a3[281 chars]: 0}] != [] 196s E 196s E First list contains 2 additional elements. 196s E First extra element 0: 196s E {'id': '0d631fa2-f645-42fd-9e22-dd38af1a3898', 'name': 'python3', 'last_activity': '2026-01-30T08:09:23.104547Z', 'execution_state': 'starting', 'connections': 0} 196s E 196s E + [] 196s E - [{'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': '0d631fa2-f645-42fd-9e22-dd38af1a3898', 196s E - 'last_activity': '2026-01-30T08:09:23.104547Z', 196s E - 'name': 'python3'}, 196s E - {'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': 'd37accbb-3f4c-4f85-8c99-b47f9f274166', 196s E - 'last_activity': '2026-01-30T08:09:23.127558Z', 196s E - 'name': 'python3'}] 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.290000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0d631fa2-f645-42fd-9e22-dd38af1a3898 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0d631fa2-f645-42fd-9e22-dd38af1a3898 (::1) 1.530000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d37accbb-3f4c-4f85-8c99-b47f9f274166 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d37accbb-3f4c-4f85-8c99-b47f9f274166 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d37accbb-3f4c-4f85-8c99-b47f9f274166 (::1) 1.420000ms 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s _____________________ AsyncKernelAPITest.test_connections ______________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzblg9a12/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzblg9a12/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzblg9a12/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzblg9a12/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzblg9a12/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzblg9a12/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzblg9a12/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.800000ms referer=None 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-ee286be4-8feb-4391-bd05-689a34eb2c98.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50027 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52463 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee286be4-8feb-4391-bd05-689a34eb2c98, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.090000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 0.910000ms 196s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98/channels 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 196s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58801 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (starting) 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (busy) 196s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 196s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel ee286be4-8feb-4391-bd05-689a34eb2c98) to 5.4 (client). 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (idle) 196s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98/channels (::1) 692.930000ms 196s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98/channels 196s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52463 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58801 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50027 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34461 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58801 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50027 196s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 196s Setting websocket_ping_timeout=30000 196s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 3.250000ms 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (busy) 196s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (busy) 196s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (idle) 196s DEBUG NotebookApp:kernelmanager.py:423 activity on ee286be4-8feb-4391-bd05-689a34eb2c98: status (idle) 196s DEBUG NotebookApp:handlers.py:579 Websocket closed ee286be4-8feb-4391-bd05-689a34eb2c98:7ec0d7bf-1d86fdd47820d13159ce1e71 196s INFO NotebookApp:kernelmanager.py:222 Starting buffering for ee286be4-8feb-4391-bd05-689a34eb2c98:7ec0d7bf-1d86fdd47820d13159ce1e71 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ee286be4-8feb-4391-bd05-689a34eb2c98:iopub 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ee286be4-8feb-4391-bd05-689a34eb2c98:iopub 196s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ee286be4-8feb-4391-bd05-689a34eb2c98:iopub 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 2.270000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee286be4-8feb-4391-bd05-689a34eb2c98 196s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for ee286be4-8feb-4391-bd05-689a34eb2c98:7ec0d7bf-1d86fdd47820d13159ce1e71 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee286be4-8feb-4391-bd05-689a34eb2c98 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 196s 196s self = 196s 196s def tearDown(self): 196s for k in self.kern_api.list().json(): 196s > self.kern_api.shutdown(k['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/16adc351-f061-4250-ae4a-5a7d9911ae38 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-16adc351-f061-4250-ae4a-5a7d9911ae38.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43733 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54325 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 16adc351-f061-4250-ae4a-5a7d9911ae38, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.740000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.070000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee286be4-8feb-4391-bd05-689a34eb2c98 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee286be4-8feb-4391-bd05-689a34eb2c98 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ee286be4-8feb-4391-bd05-689a34eb2c98 (::1) 1.020000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16adc351-f061-4250-ae4a-5a7d9911ae38 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16adc351-f061-4250-ae4a-5a7d9911ae38 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/16adc351-f061-4250-ae4a-5a7d9911ae38 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/16adc351-f061-4250-ae4a-5a7d9911ae38', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/16adc351-f061-4250-ae4a-5a7d9911ae38 (::1) 15.880000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 196s import functools 196s File "/usr/lib/python3.13/functools.py", line 455, in 196s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 196s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 196s __new__ = eval(code, namespace) 196s File "", line 0, in 196s KeyboardInterrupt 196s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 196s 196s self = 196s 196s def test_kernel_handler(self): 196s # GET kernel with given id 196s kid = self.kern_api.start().json()['id'] 196s r = self.kern_api.get(kid) 196s kern1 = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kern1, dict) 196s self.assertIn('id', kern1) 196s self.assertEqual(kern1['id'], kid) 196s 196s # Request a bad kernel id and check that a JSON 196s # message is returned! 196s bad_id = '111-111-111-111-111' 196s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 196s self.kern_api.get(bad_id) 196s 196s # DELETE kernel with id 196s > r = self.kern_api.shutdown(kid) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 3, in 196s import contextlib 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1256, in _find_spec 196s File "", line 1226, in __exit__ 196s KeyboardInterrupt 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-c605067e-81a9-446f-914f-41736fb95697.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46037 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39829 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: c605067e-81a9-446f-914f-41736fb95697, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.860000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697 (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 196s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.860000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c605067e-81a9-446f-914f-41736fb95697 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c605067e-81a9-446f-914f-41736fb95697 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697 (::1) 15.180000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16adc351-f061-4250-ae4a-5a7d9911ae38 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16adc351-f061-4250-ae4a-5a7d9911ae38 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/16adc351-f061-4250-ae4a-5a7d9911ae38 (::1) 2.910000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c605067e-81a9-446f-914f-41736fb95697 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c605067e-81a9-446f-914f-41736fb95697 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c605067e-81a9-446f-914f-41736fb95697 (::1) 0.960000ms 196s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 196s 196s self = 196s 196s def test_main_kernel_handler(self): 196s # POST request 196s r = self.kern_api.start() 196s kern1 = r.json() 196s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 196s self.assertEqual(r.status_code, 201) 196s self.assertIsInstance(kern1, dict) 196s 196s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 196s expected_csp = '; '.join([ 196s "frame-ancestors 'self'", 196s 'report-uri ' + report_uri, 196s "default-src 'none'" 196s ]) 196s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 196s 196s # GET request 196s r = self.kern_api.list() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(r.json(), list) 196s self.assertEqual(r.json()[0]['id'], kern1['id']) 196s self.assertEqual(r.json()[0]['name'], kern1['name']) 196s 196s # create another kernel and check that they both are added to the 196s # list of kernels from a GET request 196s kern2 = self.kern_api.start().json() 196s assert isinstance(kern2, dict) 196s r = self.kern_api.list() 196s kernels = r.json() 196s self.assertEqual(r.status_code, 200) 196s assert isinstance(kernels, list) 196s self.assertEqual(len(kernels), 2) 196s 196s # Interrupt a kernel 196s r = self.kern_api.interrupt(kern2['id']) 196s self.assertEqual(r.status_code, 204) 196s 196s # Restart a kernel 196s > r = self.kern_api.restart(kern2['id']) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 196s return self._req('POST', url_path_join(id, 'restart')) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3/restart 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 196s import functools 196s File "/usr/lib/python3.13/functools.py", line 18, in 196s from collections import namedtuple 196s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 196s from _collections import deque 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 946, in _load_unlocked 196s KeyboardInterrupt 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-37799acc-4ec7-4fd8-b112-5a985347d615.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39611 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36997 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37799acc-4ec7-4fd8-b112-5a985347d615, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.640000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.670000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzblg9a12/runtime/kernel-e078aa76-baae-488d-bcc8-40aaee5194e3.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39325 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57731 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: e078aa76-baae-488d-bcc8-40aaee5194e3, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.650000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: e078aa76-baae-488d-bcc8-40aaee5194e3 196s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3/interrupt (::1) 6.130000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 196s yield maybe_future(km.restart_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 196s result = coro.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 196s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 196s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 196s yield self # This tells Task to wait for completion. 196s ^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 196s await ensure_async(kernel.restart_kernel(now=now)) 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 196s await self._async_shutdown_kernel(now=now, restart=True) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3/restart (::1) 8.730000ms referer=None 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37799acc-4ec7-4fd8-b112-5a985347d615 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37799acc-4ec7-4fd8-b112-5a985347d615 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 196s yield maybe_future(km.shutdown_kernel(kernel_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 (::1) 6.870000ms referer=None 196s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 196s 196s self = 196s 196s def test_no_kernels(self): 196s """Make sure there are no kernels running at the start""" 196s kernels = self.kern_api.list().json() 196s > self.assertEqual(kernels, []) 196s E AssertionError: Lists differ: [{'id': '37799acc-4ec7-4fd8-b112-5a985347d[281 chars]: 0}] != [] 196s E 196s E First list contains 2 additional elements. 196s E First extra element 0: 196s E {'id': '37799acc-4ec7-4fd8-b112-5a985347d615', 'name': 'python3', 'last_activity': '2026-01-30T08:09:24.284008Z', 'execution_state': 'starting', 'connections': 0} 196s E 196s E + [] 196s E - [{'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': '37799acc-4ec7-4fd8-b112-5a985347d615', 196s E - 'last_activity': '2026-01-30T08:09:24.284008Z', 196s E - 'name': 'python3'}, 196s E - {'connections': 0, 196s E - 'execution_state': 'starting', 196s E - 'id': 'e078aa76-baae-488d-bcc8-40aaee5194e3', 196s E - 'last_activity': '2026-01-30T08:09:24.306513Z', 196s E - 'name': 'python3'}] 196s 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37799acc-4ec7-4fd8-b112-5a985347d615 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37799acc-4ec7-4fd8-b112-5a985347d615 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/37799acc-4ec7-4fd8-b112-5a985347d615 (::1) 0.850000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e078aa76-baae-488d-bcc8-40aaee5194e3 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e078aa76-baae-488d-bcc8-40aaee5194e3 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e078aa76-baae-488d-bcc8-40aaee5194e3 (::1) 0.900000ms 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee286be4-8feb-4391-bd05-689a34eb2c98 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16adc351-f061-4250-ae4a-5a7d9911ae38 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37799acc-4ec7-4fd8-b112-5a985347d615 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c605067e-81a9-446f-914f-41736fb95697 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s __________________________ SessionAPITest.test_create __________________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp3htu8jiu/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp3htu8jiu/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3htu8jiu/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3htu8jiu/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3htu8jiu/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3htu8jiu/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp3htu8jiu/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.220000ms referer=None 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.580000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-6182a875-7486-482f-be25-e41d40ebd446.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32803 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37539 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6182a875-7486-482f-be25-e41d40ebd446, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3htu8jiu/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.560000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.020000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb (::1) 2.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6182a875-7486-482f-be25-e41d40ebd446 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6182a875-7486-482f-be25-e41d40ebd446 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb (::1) 8.580000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 6, in 196s import fnmatch 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1262, in _find_spec 196s File "", line 1556, in find_spec 196s File "", line 1530, in _get_spec 196s File "", line 1629, in find_spec 196s File "", line 152, in _path_stat 196s KeyboardInterrupt 196s __________________ SessionAPITest.test_create_console_session __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8eb4a2f0-6db0-4895-9091-989b83b63813 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37443 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37137 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3htu8jiu/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.030000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6182a875-7486-482f-be25-e41d40ebd446 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6182a875-7486-482f-be25-e41d40ebd446 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cfb88107-5158-424f-8fab-fc12e96a55eb (::1) 1.290000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8eb4a2f0-6db0-4895-9091-989b83b63813 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8eb4a2f0-6db0-4895-9091-989b83b63813', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1152, in get_code 196s File "", line 781, in _compile_bytecode 196s KeyboardInterrupt 196s ____________________ SessionAPITest.test_create_deprecated _____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/77214612-7290-44f8-9145-f3b93e8ef38d 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-fe150655-a725-41fb-83e7-5b2b91898dd3.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58321 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56583 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe150655-a725-41fb-83e7-5b2b91898dd3, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3htu8jiu/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.160000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.020000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f82fa0cb-0ef2-4cb6-babe-0b8655e03dd8 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8eb4a2f0-6db0-4895-9091-989b83b63813 (::1) 3.150000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe150655-a725-41fb-83e7-5b2b91898dd3 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe150655-a725-41fb-83e7-5b2b91898dd3 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/77214612-7290-44f8-9145-f3b93e8ef38d (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/77214612-7290-44f8-9145-f3b93e8ef38d', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "/usr/lib/python3.13/enum.py", line 1645, in 196s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 196s ...<2 lines>... 196s """ 196s File "/usr/lib/python3.13/enum.py", line 535, in __new__ 196s __new__, save_new, use_args = metacls._find_new_( 196s ~~~~~~~~~~~~~~~~~~^ 196s classdict, member_type, first_enum, 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s ) 196s ^ 196s File "/usr/lib/python3.13/enum.py", line 1036, in _find_new_ 196s target = getattr(possible, method, None) 196s KeyboardInterrupt 196s ___________________ SessionAPITest.test_create_file_session ____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/24562316-ceba-4c73-8caa-1ea7d6228b80 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-7bd0cbfe-af4e-4e46-8001-342039038dbf.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59839 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39793 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7bd0cbfe-af4e-4e46-8001-342039038dbf, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3htu8jiu/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.880000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.230000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe150655-a725-41fb-83e7-5b2b91898dd3 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe150655-a725-41fb-83e7-5b2b91898dd3 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/77214612-7290-44f8-9145-f3b93e8ef38d (::1) 3.390000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/24562316-ceba-4c73-8caa-1ea7d6228b80 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/24562316-ceba-4c73-8caa-1ea7d6228b80', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 196s import _sre 196s File "", line 1357, in _find_and_load 196s File "", line 420, in __exit__ 196s KeyboardInterrupt 196s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 196s 196s self = 196s 196s def test_create_with_kernel_id(self): 196s # create a new kernel 196s r = self.request('POST', 'api/kernels') 196s r.raise_for_status() 196s kernel = r.json() 196s 196s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 196s self.assertEqual(resp.status_code, 201) 196s newsession = resp.json() 196s self.assertIn('id', newsession) 196s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 196s self.assertEqual(newsession['kernel']['id'], kernel['id']) 196s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 196s 196s sessions = self.sess_api.list().json() 196s > self.assertEqual(sessions, [newsession]) 196s E AssertionError: Lists differ: [{'id': '24562316-ceba-4c73-8caa-1ea7d6228b80', 'p[553 chars]ne}}] != [{'id': 'd5a3fb8f-eb86-41bf-8417-c243f9d3130a', 'p[279 chars]ne}}] 196s E 196s E First differing element 0: 196s E {'id': '24562316-ceba-4c73-8caa-1ea7d6228b80', 'p[218 chars]: 0}} 196s E {'id': 'd5a3fb8f-eb86-41bf-8417-c243f9d3130a', 'p[278 chars]one}} 196s E 196s E First list contains 1 additional elements. 196s E First extra element 1: 196s E {'id': 'd5a3fb8f-eb86-41bf-8417-c243f9d3130a', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'b333d0be-775a-413d-b8d2-33e33917833f', 'name': 'python3', 'last_activity': '2026-01-30T08:09:24.828398Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 196s E 196s E Diff is 830 characters long. Set self.maxDiff to None to see it. 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-b333d0be-775a-413d-b8d2-33e33917833f.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34463 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46891 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: b333d0be-775a-413d-b8d2-33e33917833f, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.550000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.120000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7bd0cbfe-af4e-4e46-8001-342039038dbf 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/24562316-ceba-4c73-8caa-1ea7d6228b80 (::1) 2.990000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b333d0be-775a-413d-b8d2-33e33917833f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b333d0be-775a-413d-b8d2-33e33917833f 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 3.200000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-81f8fcd4-6527-4377-8dc4-46b7bf8b6a66.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59227 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58379 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 81f8fcd4-6527-4377-8dc4-46b7bf8b6a66, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.960000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b333d0be-775a-413d-b8d2-33e33917833f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b333d0be-775a-413d-b8d2-33e33917833f 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 2.830000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.630000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81f8fcd4-6527-4377-8dc4-46b7bf8b6a66 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81f8fcd4-6527-4377-8dc4-46b7bf8b6a66 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 8.710000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 381, in 196s import copyreg 196s File "", line 1360, in _find_and_load 196s File "", line 1322, in _find_and_load_unlocked 196s File "", line 1262, in _find_spec 196s File "", line 1556, in find_spec 196s File "", line 1530, in _get_spec 196s File "", line 1621, in find_spec 196s KeyboardInterrupt 196s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.040000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3htu8jiu/runtime/kernel-54e406b8-62a8-4868-a023-f2a678a7cacf.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34543 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49967 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 54e406b8-62a8-4868-a023-f2a678a7cacf, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp3htu8jiu/notebooks/foo'} 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 81f8fcd4-6527-4377-8dc4-46b7bf8b6a66 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 81f8fcd4-6527-4377-8dc4-46b7bf8b6a66 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 18.270000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.610000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 54e406b8-62a8-4868-a023-f2a678a7cacf 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54e406b8-62a8-4868-a023-f2a678a7cacf 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5a3fb8f-eb86-41bf-8417-c243f9d3130a', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 196s yielded = self.gen.send(value) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 196s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 196s stopper = ensure_async(km.shutdown_kernel(now, restart)) 196s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 196s return _runner_map[name].run(inner) 196s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 196s return fut.result(None) 196s ~~~~~~~~~~^^^^^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 196s return self.__get_result() 196s ~~~~~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 196s raise self._exception 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 196s import functools 196s File "/usr/lib/python3.13/functools.py", line 18, in 196s from collections import namedtuple 196s File "/usr/lib/python3.13/collections/__init__.py", line 1218, in 196s class UserList(_collections_abc.MutableSequence): 196s ...<125 lines>... 196s self.data.extend(other) 196s File "/usr/lib/python3.13/abc.py", line 107, in __new__ 196s _abc_init(cls) 196s ~~~~~~~~~^^^^^ 196s KeyboardInterrupt 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 54e406b8-62a8-4868-a023-f2a678a7cacf 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s _______________________ AsyncSessionAPITest.test_create ________________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log setup ------------------------------ 196s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgcf7nsym/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgcf7nsym/etc/jupyter'] for config files 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgcf7nsym/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgcf7nsym/config 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgcf7nsym/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 196s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgcf7nsym/config 196s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgcf7nsym/notebooks 196s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 196s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 196s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 196s WARNING NotebookApp:handlers.py:612 Forbidden 196s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.750000ms referer=None 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-f00d764d-b226-48b9-847d-df37a80d90e2.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55463 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40831 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: f00d764d-b226-48b9-847d-df37a80d90e2, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgcf7nsym/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.000000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.190000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0 (::1) 0.970000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f00d764d-b226-48b9-847d-df37a80d90e2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f00d764d-b226-48b9-847d-df37a80d90e2 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0 (::1) 7.830000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 126, in 196s from . import _compiler, _parser 196s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 196s from . import _parser 196s File "/usr/lib/python3.13/re/_parser.py", line 28, in 196s _REPEATCODES = frozenset({MIN_REPEAT, MAX_REPEAT, POSSESSIVE_REPEAT}) 196s KeyboardInterrupt 196s _______________ AsyncSessionAPITest.test_create_console_session ________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/82113583-2a32-4c5d-b33f-882e7c422167 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-91b19a16-b1d7-45b9-bb92-52f8ec61bac0.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53301 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56661 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91b19a16-b1d7-45b9-bb92-52f8ec61bac0, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgcf7nsym/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.400000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.030000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f00d764d-b226-48b9-847d-df37a80d90e2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f00d764d-b226-48b9-847d-df37a80d90e2 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3073ab51-9a5c-4c5c-bfa3-39c561667fd0 (::1) 2.970000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91b19a16-b1d7-45b9-bb92-52f8ec61bac0 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b19a16-b1d7-45b9-bb92-52f8ec61bac0 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/82113583-2a32-4c5d-b33f-882e7c422167 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/82113583-2a32-4c5d-b33f-882e7c422167', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/82113583-2a32-4c5d-b33f-882e7c422167 (::1) 9.010000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 196s gc.collect() 196s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 196s 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "/usr/lib/python3.13/enum.py", line 1349, in 196s class IntEnum(int, ReprEnum): 196s ...<2 lines>... 196s """ 196s File "/usr/lib/python3.13/enum.py", line 1350, in IntEnum 196s """ 196s Enum where members are also (and must be) ints 196s """ 196s File "/usr/lib/python3.13/enum.py", line 460, in __setitem__ 196s super().__setitem__(key, value) 196s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 196s KeyboardInterrupt 196s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e9755735-c5c3-4c0f-b8cd-2b21ab7fe68a 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-12ceabf0-a09c-479b-83ed-385017ae160f.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53103 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60237 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12ceabf0-a09c-479b-83ed-385017ae160f, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgcf7nsym/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.360000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91b19a16-b1d7-45b9-bb92-52f8ec61bac0 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b19a16-b1d7-45b9-bb92-52f8ec61bac0 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/82113583-2a32-4c5d-b33f-882e7c422167 (::1) 2.550000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12ceabf0-a09c-479b-83ed-385017ae160f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12ceabf0-a09c-479b-83ed-385017ae160f 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e9755735-c5c3-4c0f-b8cd-2b21ab7fe68a (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e9755735-c5c3-4c0f-b8cd-2b21ab7fe68a', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "/usr/lib/python3.13/enum.py", line 1355, in 196s class StrEnum(str, ReprEnum): 196s ...<30 lines>... 196s return name.lower() 196s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 196s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 196s KeyboardInterrupt 196s _________________ AsyncSessionAPITest.test_create_file_session _________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-ba5b7b12-a827-4218-b889-600e45d7fab2.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59953 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55461 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: ba5b7b12-a827-4218-b889-600e45d7fab2, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgcf7nsym/notebooks/foo'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.930000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.240000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12ceabf0-a09c-479b-83ed-385017ae160f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12ceabf0-a09c-479b-83ed-385017ae160f 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e9755735-c5c3-4c0f-b8cd-2b21ab7fe68a (::1) 4.180000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba5b7b12-a827-4218-b889-600e45d7fab2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba5b7b12-a827-4218-b889-600e45d7fab2 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841 (::1) 7.750000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 3, in 196s import contextlib 196s File "/usr/lib/python3.13/contextlib.py", line 105, in 196s class _GeneratorContextManagerBase: 196s ...<20 lines>... 196s return self.__class__(self.func, self.args, self.kwds) 196s KeyboardInterrupt 196s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 196s 196s self = 196s 196s def test_create_with_kernel_id(self): 196s # create a new kernel 196s r = self.request('POST', 'api/kernels') 196s r.raise_for_status() 196s kernel = r.json() 196s 196s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 196s self.assertEqual(resp.status_code, 201) 196s newsession = resp.json() 196s self.assertIn('id', newsession) 196s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 196s self.assertEqual(newsession['kernel']['id'], kernel['id']) 196s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 196s 196s sessions = self.sess_api.list().json() 196s > self.assertEqual(sessions, [newsession]) 196s E AssertionError: Lists differ: [{'id': 'a9748633-78c4-4e73-a174-f0a1d9af9841', 'pa[552 chars]ne}}] != [{'id': 'ab43ea3e-1852-4d12-92d3-72d4ccf88a84', 'pa[278 chars]ne}}] 196s E 196s E First differing element 0: 196s E {'id': 'a9748633-78c4-4e73-a174-f0a1d9af9841', 'pa[217 chars]: 0}} 196s E {'id': 'ab43ea3e-1852-4d12-92d3-72d4ccf88a84', 'pa[277 chars]one}} 196s E 196s E First list contains 1 additional elements. 196s E First extra element 1: 196s E {'id': 'ab43ea3e-1852-4d12-92d3-72d4ccf88a84', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '7c4e87ee-19d9-46af-91b5-447d5aa8770c', 'name': 'python3', 'last_activity': '2026-01-30T08:09:25.359520Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 196s E 196s E Diff is 830 characters long. Set self.maxDiff to None to see it. 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-7c4e87ee-19d9-46af-91b5-447d5aa8770c.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51089 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37641 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c4e87ee-19d9-46af-91b5-447d5aa8770c, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.760000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.910000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba5b7b12-a827-4218-b889-600e45d7fab2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba5b7b12-a827-4218-b889-600e45d7fab2 196s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a9748633-78c4-4e73-a174-f0a1d9af9841 (::1) 2.470000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ----------------------------- Captured stderr call ----------------------------- 196s Traceback (most recent call last): 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.140000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-3b8e3d0a-30d2-4720-b33e-cca88309fd6e.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39495 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50069 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3b8e3d0a-30d2-4720-b33e-cca88309fd6e, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.450000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 2.790000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.660000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.160000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b8e3d0a-30d2-4720-b33e-cca88309fd6e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b8e3d0a-30d2-4720-b33e-cca88309fd6e 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s ERROR NotebookApp:log.py:55 { 196s "Host": "localhost:12341", 196s "Accept": "*/*", 196s "User-Agent": "python-requests/2.32.5" 196s } 196s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 8.630000ms referer=None 196s --------------------------- Captured stderr teardown --------------------------- 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 6, in 196s import fnmatch 196s File "", line 1360, in _find_and_load 196s File "", line 1331, in _find_and_load_unlocked 196s File "", line 935, in _load_unlocked 196s File "", line 1019, in exec_module 196s File "", line 1115, in get_code 196s File "", line 1214, in get_data 196s KeyboardInterrupt 196s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 196s 196s @self.addCleanup 196s def cleanup_sessions(): 196s for session in self.sess_api.list().json(): 196s > self.sess_api.delete(session['id']) 196s 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 196s return self._req('DELETE', id) 196s ^^^^^^^^^^^^^^^^^^^^^^^ 196s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 196s response.raise_for_status() 196s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 196s 196s self = 196s 196s def raise_for_status(self): 196s """Raises :class:`HTTPError`, if one occurred.""" 196s 196s http_error_msg = "" 196s if isinstance(self.reason, bytes): 196s # We attempt to decode utf-8 first because some servers 196s # choose to localize their reason strings. If the string 196s # isn't utf-8, we fall back to iso-8859-1 for all other 196s # encodings. (See PR #3538) 196s try: 196s reason = self.reason.decode("utf-8") 196s except UnicodeDecodeError: 196s reason = self.reason.decode("iso-8859-1") 196s else: 196s reason = self.reason 196s 196s if 400 <= self.status_code < 500: 196s http_error_msg = ( 196s f"{self.status_code} Client Error: {reason} for url: {self.url}" 196s ) 196s 196s elif 500 <= self.status_code < 600: 196s http_error_msg = ( 196s f"{self.status_code} Server Error: {reason} for url: {self.url}" 196s ) 196s 196s if http_error_msg: 196s > raise HTTPError(http_error_msg, response=self) 196s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 196s 196s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 196s ------------------------------ Captured log call ------------------------------- 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.730000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 196s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgcf7nsym/runtime/kernel-89f2c0f3-f035-4c6c-b957-d67c2440a5bd.json'] 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59177 196s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59559 196s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89f2c0f3-f035-4c6c-b957-d67c2440a5bd, name: python3 196s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgcf7nsym/notebooks/foo'} 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b8e3d0a-30d2-4720-b33e-cca88309fd6e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b8e3d0a-30d2-4720-b33e-cca88309fd6e 196s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 16.830000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.690000ms 196s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 196s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89f2c0f3-f035-4c6c-b957-d67c2440a5bd 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89f2c0f3-f035-4c6c-b957-d67c2440a5bd 196s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84 (::1) 196s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab43ea3e-1852-4d12-92d3-72d4ccf88a84', version='HTTP/1.1', remote_ip='::1') 196s Traceback (most recent call last): 196s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 196s result = await result 196s ^^^^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 196s future.result() 196s ~~~~~~~~~~~~~^^ 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 196s yield maybe_future(sm.delete_session(session_id)) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 196s yielded = self.gen.throw(exc) 196s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 196s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 196s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 196s value = future.result() 196s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 196s raise self._exception.with_traceback(self._exception_tb) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 196s result = coro.send(None) 196s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 196s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 196s raise km.ready.exception() # type: ignore[misc] 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 196s await kernel_awaitable 196s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 196s result = await obj 196s ^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 196s raise e 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 196s out = await method(self, *args, **kwargs) 196s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 196s await self._async_finish_shutdown(restart=restart) 196s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 196s await asyncio.wait_for( 196s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 196s ) 196s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 196s async with timeouts.timeout(timeout): 196s ~~~~~~~~~~~~~~~~^^^^^^^^^ 196s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 196s raise RuntimeError("Timeout should be used inside a task") 196s RuntimeError: Timeout should be used inside a task 196s WARNING NotebookApp:handlers.py:612 Unhandled error 196s --------------------------- Captured stderr teardown --------------------------- 196s Traceback (most recent call last): 196s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 196s return _run_code(code, main_globals, None, 196s "__main__", mod_spec) 196s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 196s exec(code, run_globals) 196s ~~~~^^^^^^^^^^^^^^^^^^^ 196s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 196s from pathlib import Path 196s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 196s from ._abc import * 196s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 196s from glob import _Globber, _no_recurse_symlinks 196s File "/usr/lib/python3.13/glob.py", line 5, in 196s import re 196s File "/usr/lib/python3.13/re/__init__.py", line 125, in 196s import enum 196s File "/usr/lib/python3.13/enum.py", line 1355, in 196s class StrEnum(str, ReprEnum): 196s ...<30 lines>... 196s return name.lower() 196s File "/usr/lib/python3.13/enum.py", line 1355, in StrEnum 196s class StrEnum(str, ReprEnum): 196s 196s File "/usr/lib/python3.13/enum.py", line 460, in __setitem__ 196s super().__setitem__(key, value) 196s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 196s KeyboardInterrupt 196s ---------------------------- Captured log teardown ----------------------------- 196s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12ceabf0-a09c-479b-83ed-385017ae160f 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c4e87ee-19d9-46af-91b5-447d5aa8770c 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89f2c0f3-f035-4c6c-b957-d67c2440a5bd 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba5b7b12-a827-4218-b889-600e45d7fab2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b8e3d0a-30d2-4720-b33e-cca88309fd6e 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f00d764d-b226-48b9-847d-df37a80d90e2 196s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91b19a16-b1d7-45b9-bb92-52f8ec61bac0 196s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 196s =============================== warnings summary =============================== 196s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 196s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 196s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 196s return LooseVersion(v) >= LooseVersion(check) 196s 196s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 196s services/kernels/tests/test_kernels_api.py: 72 warnings 196s services/sessions/tests/test_sessions_api.py: 88 warnings 196s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 196s dt = unaware(*args, **kwargs) 196s 196s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 196s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 196s pytestmark = pytest.mark.integration_tests 196s 196s services/kernels/tests/test_kernels_api.py: 6 warnings 196s services/sessions/tests/test_sessions_api.py: 6 warnings 196s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 196s policy = events.get_event_loop_policy() 196s 196s services/kernels/tests/test_kernels_api.py: 24 warnings 196s services/sessions/tests/test_sessions_api.py: 19 warnings 196s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 196s loop = events.get_event_loop_policy().get_event_loop() 196s 196s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 196s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 196s loop.make_current() 196s 196s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 196s =========================== short test summary info ============================ 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 196s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 196s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 196s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 196s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 196s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 196s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 196s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 6.17s ========== 197s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 197s *** 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 200s ============================= test session starts ============================== 200s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 200s rootdir: /tmp/autopkgtest.crwF8L/autopkgtest_tmp 200s plugins: typeguard-4.4.4 200s collected 330 items / 307 deselected / 23 selected 200s run-last-failure: rerun previous 23 failures 200s 202s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 203s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 203s 203s ==================================== ERRORS ==================================== 203s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 203s 203s self = 203s 203s def tearDown(self): 203s for k in self.kern_api.list().json(): 203s > self.kern_api.shutdown(k['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 203s import functools 203s File "/usr/lib/python3.13/functools.py", line 18, in 203s from collections import namedtuple 203s KeyboardInterrupt 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 203s from ipykernel import kernelapp as app 203s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 203s from .connect import * # noqa: F403 203s ^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 203s import jupyter_client 203s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 203s from .asynchronous import AsyncKernelClient 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 203s from .client import AsyncKernelClient # noqa 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 203s import zmq.asyncio 203s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 203s import asyncio 203s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 203s from .base_events import * 203s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 203s import socket 203s File "/usr/lib/python3.13/socket.py", line 62, in 203s EBADF = getattr(errno, 'EBADF', 9) 203s KeyboardInterrupt 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-7519096b-405a-4c88-a5b4-ea8b3e3e38c3.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44805 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43273 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7519096b-405a-4c88-a5b4-ea8b3e3e38c3, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.120000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.640000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-5062abba-65e1-4797-8aae-c6be2f94edaf.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49021 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50323 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5062abba-65e1-4797-8aae-c6be2f94edaf, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.330000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.940000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5062abba-65e1-4797-8aae-c6be2f94edaf 203s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf/interrupt (::1) 2.520000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 203s yield maybe_future(km.restart_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 203s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 203s await ensure_async(kernel.restart_kernel(now=now)) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 203s await self._async_shutdown_kernel(now=now, restart=True) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf/restart (::1) 13.310000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 203s yielded = ctx_run(next, result) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 203s 203s self = 203s 203s def tearDown(self): 203s for k in self.kern_api.list().json(): 203s > self.kern_api.shutdown(k['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Fatal Python error: init_import_site: Failed to import the site module 203s Python runtime state: initialized 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/site.py", line 735, in 203s main() 203s File "/usr/lib/python3.13/site.py", line 728, in main 203s execsitecustomize() 203s File "/usr/lib/python3.13/site.py", line 667, in execsitecustomize 203s import sitecustomize 203s File "/usr/lib/python3.13/sitecustomize.py", line 3, in 203s import apport_python_hook 203s File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 14, in 203s import types 203s File "", line 1360, in _find_and_load 203s File "", line 1331, in _find_and_load_unlocked 203s File "", line 935, in _load_unlocked 203s File "", line 1019, in exec_module 203s File "", line 1109, in get_code 203s File "", line 1232, in path_stats 203s File "", line 152, in _path_stat 203s KeyboardInterrupt 203s Traceback (most recent call last): 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56195 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58759 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.970000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-a1434029-945b-48ec-924a-d7844e16b1f9.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49241 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50983 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1434029-945b-48ec-924a-d7844e16b1f9, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.210000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a1434029-945b-48ec-924a-d7844e16b1f9 203s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9/interrupt (::1) 0.880000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 203s yield maybe_future(km.restart_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 203s result = coro.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 203s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 203s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 203s yield self # This tells Task to wait for completion. 203s ^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 203s await ensure_async(kernel.restart_kernel(now=now)) 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 203s await self._async_shutdown_kernel(now=now, restart=True) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9/restart (::1) 5.520000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s --------------------------- Captured stderr teardown --------------------------- 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 203s from ipykernel import kernelapp as app 203s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 203s from .connect import * # noqa: F403 203s ^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 203s import jupyter_client 203s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 203s from .asynchronous import AsyncKernelClient 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 203s from .client import AsyncKernelClient # noqa 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 203s import zmq.asyncio 203s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 203s from zmq import sugar 203s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 203s from zmq.sugar import context, frame, poll, socket, tracker, version 203s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 203s from .socket import Socket, SyncSocket 203s File "", line 1360, in _find_and_load 203s File "", line 1331, in _find_and_load_unlocked 203s File "", line 935, in _load_unlocked 203s File "", line 1019, in exec_module 203s File "", line 1152, in get_code 203s File "", line 781, in _compile_bytecode 203s KeyboardInterrupt 203s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-88689c4a-6e85-4e69-a0be-8178ccbb2fcf.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45097 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38319 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88689c4a-6e85-4e69-a0be-8178ccbb2fcf, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.340000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.750000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.240000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9 (::1) 2.860000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 8.580000ms referer=None 203s --------------------------- Captured stderr teardown --------------------------- 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 203s from ._local import * 203s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 203s import pwd 203s KeyboardInterrupt 203s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s [IPKernelApp] ERROR | Current working directory doesn't exist. 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 5, in 203s import re 203s File "/usr/lib/python3.13/re/__init__.py", line 126, in 203s from . import _compiler, _parser 203s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 203s from ._casefix import _EXTRA_CASES 203s File "", line 1360, in _find_and_load 203s File "", line 1322, in _find_and_load_unlocked 203s File "", line 1262, in _find_spec 203s File "", line 1128, in find_spec 203s KeyboardInterrupt 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-020c88b3-3be8-45fa-b1e9-19be739b87a6.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43199 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35137 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 020c88b3-3be8-45fa-b1e9-19be739b87a6, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.200000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 5.200000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 5.000000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8efd12ae-8741-428a-b105-d807e581cde8 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8efd12ae-8741-428a-b105-d807e581cde8 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55 (::1) 3.580000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 020c88b3-3be8-45fa-b1e9-19be739b87a6 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 020c88b3-3be8-45fa-b1e9-19be739b87a6 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 16.140000ms referer=None 203s =================================== FAILURES =================================== 203s ______________________ KernelAPITest.test_default_kernel _______________________ 203s 203s self = 203s 203s def tearDown(self): 203s for k in self.kern_api.list().json(): 203s > self.kern_api.shutdown(k['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d482e7cc-aa68-4716-b257-5e245f45b483 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log setup ------------------------------ 203s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpus4m00zt/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpus4m00zt/etc/jupyter'] for config files 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpus4m00zt/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpus4m00zt/config 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpus4m00zt/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpus4m00zt/config 203s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpus4m00zt/notebooks 203s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 203s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 203s WARNING NotebookApp:handlers.py:612 Forbidden 203s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.190000ms referer=None 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-d482e7cc-aa68-4716-b257-5e245f45b483.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55895 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56547 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: d482e7cc-aa68-4716-b257-5e245f45b483, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 56.340000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.090000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d482e7cc-aa68-4716-b257-5e245f45b483 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d482e7cc-aa68-4716-b257-5e245f45b483 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d482e7cc-aa68-4716-b257-5e245f45b483 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d482e7cc-aa68-4716-b257-5e245f45b483', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 203s yielded = ctx_run(next, result) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 3, in 203s import contextlib 203s File "/usr/lib/python3.13/contextlib.py", line 129, in 203s class _GeneratorContextManager( 203s ...<70 lines>... 203s self.gen.close() 203s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 203s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 203s KeyboardInterrupt 203s ______________________ KernelAPITest.test_kernel_handler _______________________ 203s 203s self = 203s 203s def test_kernel_handler(self): 203s # GET kernel with given id 203s kid = self.kern_api.start().json()['id'] 203s r = self.kern_api.get(kid) 203s kern1 = r.json() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(kern1, dict) 203s self.assertIn('id', kern1) 203s self.assertEqual(kern1['id'], kid) 203s 203s # Request a bad kernel id and check that a JSON 203s # message is returned! 203s bad_id = '111-111-111-111-111' 203s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 203s self.kern_api.get(bad_id) 203s 203s # DELETE kernel with id 203s > r = self.kern_api.shutdown(kid) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/acc211b5-4369-46d4-af12-a9edbfb3a4c6 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 5, in 203s import re 203s File "/usr/lib/python3.13/re/__init__.py", line 126, in 203s from . import _compiler, _parser 203s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 203s from . import _parser 203s File "/usr/lib/python3.13/re/_parser.py", line 15, in 203s from ._constants import * 203s File "/usr/lib/python3.13/re/_constants.py", line 130, in 203s ATCODES = _makecodes( 203s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 203s ...<5 lines>... 203s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 203s ) 203s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 203s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 203s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 203s KeyboardInterrupt 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-acc211b5-4369-46d4-af12-a9edbfb3a4c6.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38419 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57541 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: acc211b5-4369-46d4-af12-a9edbfb3a4c6, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.350000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/acc211b5-4369-46d4-af12-a9edbfb3a4c6 (::1) 2.770000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s 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 203s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 203s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.940000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for acc211b5-4369-46d4-af12-a9edbfb3a4c6 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: acc211b5-4369-46d4-af12-a9edbfb3a4c6 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/acc211b5-4369-46d4-af12-a9edbfb3a4c6 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/acc211b5-4369-46d4-af12-a9edbfb3a4c6', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 203s yielded = ctx_run(next, result) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/acc211b5-4369-46d4-af12-a9edbfb3a4c6 (::1) 12.150000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.780000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d482e7cc-aa68-4716-b257-5e245f45b483 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d482e7cc-aa68-4716-b257-5e245f45b483 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d482e7cc-aa68-4716-b257-5e245f45b483 (::1) 1.080000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for acc211b5-4369-46d4-af12-a9edbfb3a4c6 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: acc211b5-4369-46d4-af12-a9edbfb3a4c6 203s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 203s 203s self = 203s 203s def test_main_kernel_handler(self): 203s # POST request 203s r = self.kern_api.start() 203s kern1 = r.json() 203s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 203s self.assertEqual(r.status_code, 201) 203s self.assertIsInstance(kern1, dict) 203s 203s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 203s expected_csp = '; '.join([ 203s "frame-ancestors 'self'", 203s 'report-uri ' + report_uri, 203s "default-src 'none'" 203s ]) 203s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 203s 203s # GET request 203s r = self.kern_api.list() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(r.json(), list) 203s self.assertEqual(r.json()[0]['id'], kern1['id']) 203s self.assertEqual(r.json()[0]['name'], kern1['name']) 203s 203s # create another kernel and check that they both are added to the 203s # list of kernels from a GET request 203s kern2 = self.kern_api.start().json() 203s assert isinstance(kern2, dict) 203s r = self.kern_api.list() 203s kernels = r.json() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(kernels, list) 203s self.assertEqual(len(kernels), 2) 203s 203s # Interrupt a kernel 203s r = self.kern_api.interrupt(kern2['id']) 203s self.assertEqual(r.status_code, 204) 203s 203s # Restart a kernel 203s > r = self.kern_api.restart(kern2['id']) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 203s return self._req('POST', url_path_join(id, 'restart')) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf/restart 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 203s import functools 203s File "/usr/lib/python3.13/functools.py", line 18, in 203s from collections import namedtuple 203s KeyboardInterrupt 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 203s from ipykernel import kernelapp as app 203s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 203s from .connect import * # noqa: F403 203s ^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 203s import jupyter_client 203s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 203s from .asynchronous import AsyncKernelClient 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 203s from .client import AsyncKernelClient # noqa 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 203s import zmq.asyncio 203s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 203s import asyncio 203s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 203s from .base_events import * 203s File "/usr/lib/python3.13/asyncio/base_events.py", line 23, in 203s import socket 203s File "/usr/lib/python3.13/socket.py", line 62, in 203s EBADF = getattr(errno, 'EBADF', 9) 203s KeyboardInterrupt 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-7519096b-405a-4c88-a5b4-ea8b3e3e38c3.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44805 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43273 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7519096b-405a-4c88-a5b4-ea8b3e3e38c3, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.120000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.640000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpus4m00zt/runtime/kernel-5062abba-65e1-4797-8aae-c6be2f94edaf.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49021 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50323 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5062abba-65e1-4797-8aae-c6be2f94edaf, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.330000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.940000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 5062abba-65e1-4797-8aae-c6be2f94edaf 203s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf/interrupt (::1) 2.520000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 203s yield maybe_future(km.restart_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 203s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 203s await ensure_async(kernel.restart_kernel(now=now)) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 203s await self._async_shutdown_kernel(now=now, restart=True) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf/restart (::1) 13.310000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 203s yielded = ctx_run(next, result) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ________________________ KernelAPITest.test_no_kernels _________________________ 203s 203s self = 203s 203s def test_no_kernels(self): 203s """Make sure there are no kernels running at the start""" 203s kernels = self.kern_api.list().json() 203s > self.assertEqual(kernels, []) 203s E AssertionError: Lists differ: [{'id': '7519096b-405a-4c88-a5b4-ea8b3e3e3[281 chars]: 0}] != [] 203s E 203s E First list contains 2 additional elements. 203s E First extra element 0: 203s E {'id': '7519096b-405a-4c88-a5b4-ea8b3e3e38c3', 'name': 'python3', 'last_activity': '2026-01-30T08:09:30.496608Z', 'execution_state': 'starting', 'connections': 0} 203s E 203s E + [] 203s E - [{'connections': 0, 203s E - 'execution_state': 'starting', 203s E - 'id': '7519096b-405a-4c88-a5b4-ea8b3e3e38c3', 203s E - 'last_activity': '2026-01-30T08:09:30.496608Z', 203s E - 'name': 'python3'}, 203s E - {'connections': 0, 203s E - 'execution_state': 'starting', 203s E - 'id': '5062abba-65e1-4797-8aae-c6be2f94edaf', 203s E - 'last_activity': '2026-01-30T08:09:30.521681Z', 203s E - 'name': 'python3'}] 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.140000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7519096b-405a-4c88-a5b4-ea8b3e3e38c3 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7519096b-405a-4c88-a5b4-ea8b3e3e38c3 (::1) 1.050000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5062abba-65e1-4797-8aae-c6be2f94edaf 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5062abba-65e1-4797-8aae-c6be2f94edaf 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5062abba-65e1-4797-8aae-c6be2f94edaf (::1) 1.150000ms 203s ---------------------------- Captured log teardown ----------------------------- 203s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 203s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 203s _____________________ AsyncKernelAPITest.test_connections ______________________ 203s 203s self = 203s 203s def tearDown(self): 203s for k in self.kern_api.list().json(): 203s > self.kern_api.shutdown(k['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log setup ------------------------------ 203s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpkw059hbb/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpkw059hbb/etc/jupyter'] for config files 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpkw059hbb/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpkw059hbb/config 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpkw059hbb/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpkw059hbb/config 203s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpkw059hbb/notebooks 203s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 203s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 203s WARNING NotebookApp:handlers.py:612 Forbidden 203s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.000000ms referer=None 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-f912b231-85ce-4a3f-82e6-7513fd96f6d7.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45845 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53739 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: f912b231-85ce-4a3f-82e6-7513fd96f6d7, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.330000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 0.940000ms 203s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7/channels 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 203s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37419 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (busy) 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (idle) 203s 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/'}]} 203s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel f912b231-85ce-4a3f-82e6-7513fd96f6d7) to 5.4 (client). 203s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7/channels (::1) 609.740000ms 203s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7/channels 203s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53739 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37419 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45845 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56549 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37419 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45845 203s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 203s Setting websocket_ping_timeout=30000 203s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 1.300000ms 203s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (busy) 203s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (busy) 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (idle) 203s DEBUG NotebookApp:kernelmanager.py:423 activity on f912b231-85ce-4a3f-82e6-7513fd96f6d7: status (idle) 203s DEBUG NotebookApp:handlers.py:579 Websocket closed f912b231-85ce-4a3f-82e6-7513fd96f6d7:988864ab-4c151182f5e03066de9bbfca 203s INFO NotebookApp:kernelmanager.py:222 Starting buffering for f912b231-85ce-4a3f-82e6-7513fd96f6d7:988864ab-4c151182f5e03066de9bbfca 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f912b231-85ce-4a3f-82e6-7513fd96f6d7:iopub 203s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f912b231-85ce-4a3f-82e6-7513fd96f6d7:iopub 203s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on f912b231-85ce-4a3f-82e6-7513fd96f6d7:iopub 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 1.020000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 0.760000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for f912b231-85ce-4a3f-82e6-7513fd96f6d7:988864ab-4c151182f5e03066de9bbfca 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 8.400000ms referer=None 203s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 203s 203s self = 203s 203s def tearDown(self): 203s for k in self.kern_api.list().json(): 203s > self.kern_api.shutdown(k['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a888990a-215b-4f78-8f0f-8c0cf95c282c 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 203s from ipykernel import kernelapp as app 203s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 203s from .connect import * # noqa: F403 203s ^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 203s import json 203s File "/usr/lib/python3.13/json/__init__.py", line 106, in 203s from .decoder import JSONDecoder, JSONDecodeError 203s File "/usr/lib/python3.13/json/decoder.py", line 262, in 203s class JSONDecoder(object): 203s ...<101 lines>... 203s return obj, end 203s KeyboardInterrupt 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-a888990a-215b-4f78-8f0f-8c0cf95c282c.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37235 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55671 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: a888990a-215b-4f78-8f0f-8c0cf95c282c, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.430000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.720000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f912b231-85ce-4a3f-82e6-7513fd96f6d7 (::1) 6.180000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a888990a-215b-4f78-8f0f-8c0cf95c282c 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888990a-215b-4f78-8f0f-8c0cf95c282c 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a888990a-215b-4f78-8f0f-8c0cf95c282c (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a888990a-215b-4f78-8f0f-8c0cf95c282c', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a888990a-215b-4f78-8f0f-8c0cf95c282c (::1) 18.510000ms referer=None 203s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 203s 203s self = 203s 203s def test_kernel_handler(self): 203s # GET kernel with given id 203s kid = self.kern_api.start().json()['id'] 203s r = self.kern_api.get(kid) 203s kern1 = r.json() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(kern1, dict) 203s self.assertIn('id', kern1) 203s self.assertEqual(kern1['id'], kid) 203s 203s # Request a bad kernel id and check that a JSON 203s # message is returned! 203s bad_id = '111-111-111-111-111' 203s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 203s self.kern_api.get(bad_id) 203s 203s # DELETE kernel with id 203s > r = self.kern_api.shutdown(kid) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Could not import runpy module 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-842a562c-1d9b-47a0-99a4-57cc06fb6e5b.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46337 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51897 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 842a562c-1d9b-47a0-99a4-57cc06fb6e5b, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.940000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b (::1) 0.820000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s 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 203s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 203s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.850000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b (::1) 16.460000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.170000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a888990a-215b-4f78-8f0f-8c0cf95c282c 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888990a-215b-4f78-8f0f-8c0cf95c282c 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a888990a-215b-4f78-8f0f-8c0cf95c282c (::1) 4.290000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/842a562c-1d9b-47a0-99a4-57cc06fb6e5b (::1) 2.680000ms 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 14, in 203s import importlib.machinery # importlib first so we can test #15386 via -m 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "", line 1360, in _find_and_load 203s File "", line 1322, in _find_and_load_unlocked 203s File "", line 1262, in _find_spec 203s File "", line 1556, in find_spec 203s File "", line 1530, in _get_spec 203s File "", line 1661, in find_spec 203s KeyboardInterrupt 203s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 203s 203s self = 203s 203s def test_main_kernel_handler(self): 203s # POST request 203s r = self.kern_api.start() 203s kern1 = r.json() 203s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 203s self.assertEqual(r.status_code, 201) 203s self.assertIsInstance(kern1, dict) 203s 203s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 203s expected_csp = '; '.join([ 203s "frame-ancestors 'self'", 203s 'report-uri ' + report_uri, 203s "default-src 'none'" 203s ]) 203s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 203s 203s # GET request 203s r = self.kern_api.list() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(r.json(), list) 203s self.assertEqual(r.json()[0]['id'], kern1['id']) 203s self.assertEqual(r.json()[0]['name'], kern1['name']) 203s 203s # create another kernel and check that they both are added to the 203s # list of kernels from a GET request 203s kern2 = self.kern_api.start().json() 203s assert isinstance(kern2, dict) 203s r = self.kern_api.list() 203s kernels = r.json() 203s self.assertEqual(r.status_code, 200) 203s assert isinstance(kernels, list) 203s self.assertEqual(len(kernels), 2) 203s 203s # Interrupt a kernel 203s r = self.kern_api.interrupt(kern2['id']) 203s self.assertEqual(r.status_code, 204) 203s 203s # Restart a kernel 203s > r = self.kern_api.restart(kern2['id']) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 203s return self._req('POST', url_path_join(id, 'restart')) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9/restart 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Fatal Python error: init_import_site: Failed to import the site module 203s Python runtime state: initialized 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/site.py", line 735, in 203s main() 203s File "/usr/lib/python3.13/site.py", line 728, in main 203s execsitecustomize() 203s File "/usr/lib/python3.13/site.py", line 667, in execsitecustomize 203s import sitecustomize 203s File "/usr/lib/python3.13/sitecustomize.py", line 3, in 203s import apport_python_hook 203s File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 14, in 203s import types 203s File "", line 1360, in _find_and_load 203s File "", line 1331, in _find_and_load_unlocked 203s File "", line 935, in _load_unlocked 203s File "", line 1019, in exec_module 203s File "", line 1109, in get_code 203s File "", line 1232, in path_stats 203s File "", line 152, in _path_stat 203s KeyboardInterrupt 203s Traceback (most recent call last): 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56195 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58759 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.970000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpkw059hbb/runtime/kernel-a1434029-945b-48ec-924a-d7844e16b1f9.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49241 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50983 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: a1434029-945b-48ec-924a-d7844e16b1f9, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.210000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a1434029-945b-48ec-924a-d7844e16b1f9 203s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9/interrupt (::1) 0.880000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 203s yield maybe_future(km.restart_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 203s result = coro.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 203s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 203s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 203s yield self # This tells Task to wait for completion. 203s ^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 203s await ensure_async(kernel.restart_kernel(now=now)) 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 203s await self._async_shutdown_kernel(now=now, restart=True) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9/restart (::1) 5.520000ms referer=None 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 203s yield maybe_future(km.shutdown_kernel(kernel_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 203s 203s self = 203s 203s def test_no_kernels(self): 203s """Make sure there are no kernels running at the start""" 203s kernels = self.kern_api.list().json() 203s > self.assertEqual(kernels, []) 203s E AssertionError: Lists differ: [{'id': '36cf8fa6-f1c7-4fb2-a9fa-bfed1af20[281 chars]: 0}] != [] 203s E 203s E First list contains 2 additional elements. 203s E First extra element 0: 203s E {'id': '36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42', 'name': 'python3', 'last_activity': '2026-01-30T08:09:31.602406Z', 'execution_state': 'starting', 'connections': 0} 203s E 203s E + [] 203s E - [{'connections': 0, 203s E - 'execution_state': 'starting', 203s E - 'id': '36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42', 203s E - 'last_activity': '2026-01-30T08:09:31.602406Z', 203s E - 'name': 'python3'}, 203s E - {'connections': 0, 203s E - 'execution_state': 'starting', 203s E - 'id': 'a1434029-945b-48ec-924a-d7844e16b1f9', 203s E - 'last_activity': '2026-01-30T08:09:31.624393Z', 203s E - 'name': 'python3'}] 203s 203s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 (::1) 0.900000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a1434029-945b-48ec-924a-d7844e16b1f9 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a1434029-945b-48ec-924a-d7844e16b1f9 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a1434029-945b-48ec-924a-d7844e16b1f9 (::1) 1.000000ms 203s ---------------------------- Captured log teardown ----------------------------- 203s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f912b231-85ce-4a3f-82e6-7513fd96f6d7 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 842a562c-1d9b-47a0-99a4-57cc06fb6e5b 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36cf8fa6-f1c7-4fb2-a9fa-bfed1af20e42 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a888990a-215b-4f78-8f0f-8c0cf95c282c 203s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 203s __________________________ SessionAPITest.test_create __________________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1df432f3-5565-4f6f-9455-17f7d16544f4 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log setup ------------------------------ 203s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp085roahq/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp085roahq/etc/jupyter'] for config files 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp085roahq/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp085roahq/config 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp085roahq/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp085roahq/config 203s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp085roahq/notebooks 203s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 203s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 203s WARNING NotebookApp:handlers.py:612 Forbidden 203s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.880000ms referer=None 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.460000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-5768a97f-6546-4736-af4f-cc2ca5ec9d50.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54287 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46753 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5768a97f-6546-4736-af4f-cc2ca5ec9d50, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp085roahq/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 23.360000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.760000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1df432f3-5565-4f6f-9455-17f7d16544f4 (::1) 2.700000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.600000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5768a97f-6546-4736-af4f-cc2ca5ec9d50 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5768a97f-6546-4736-af4f-cc2ca5ec9d50 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1df432f3-5565-4f6f-9455-17f7d16544f4 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1df432f3-5565-4f6f-9455-17f7d16544f4', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 5, in 203s import re 203s File "/usr/lib/python3.13/re/__init__.py", line 126, in 203s from . import _compiler, _parser 203s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 203s from . import _parser 203s File "/usr/lib/python3.13/re/_parser.py", line 15, in 203s from ._constants import * 203s File "", line 1360, in _find_and_load 203s File "", line 1331, in _find_and_load_unlocked 203s File "", line 946, in _load_unlocked 203s KeyboardInterrupt 203s __________________ SessionAPITest.test_create_console_session __________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/55abf3ec-98b8-406d-96a5-520c6ac9fc09 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-463b1073-1464-4b4f-bf0c-fa1a10153bd1.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50173 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39257 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 463b1073-1464-4b4f-bf0c-fa1a10153bd1, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp085roahq/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.830000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5768a97f-6546-4736-af4f-cc2ca5ec9d50 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5768a97f-6546-4736-af4f-cc2ca5ec9d50 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1df432f3-5565-4f6f-9455-17f7d16544f4 (::1) 2.140000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 463b1073-1464-4b4f-bf0c-fa1a10153bd1 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 463b1073-1464-4b4f-bf0c-fa1a10153bd1 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/55abf3ec-98b8-406d-96a5-520c6ac9fc09 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/55abf3ec-98b8-406d-96a5-520c6ac9fc09', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 3, in 203s import contextlib 203s File "/usr/lib/python3.13/contextlib.py", line 342, in 203s class closing(AbstractContextManager): 203s ...<21 lines>... 203s self.thing.close() 203s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 203s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 203s KeyboardInterrupt 203s ____________________ SessionAPITest.test_create_deprecated _____________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d4aa2243-4fc4-490e-bb73-bbad0c02960c 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-64a47ab9-78bd-446d-a105-e4cdecebeb20.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39345 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60525 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 64a47ab9-78bd-446d-a105-e4cdecebeb20, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp085roahq/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.440000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 463b1073-1464-4b4f-bf0c-fa1a10153bd1 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 463b1073-1464-4b4f-bf0c-fa1a10153bd1 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/55abf3ec-98b8-406d-96a5-520c6ac9fc09 (::1) 2.510000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 64a47ab9-78bd-446d-a105-e4cdecebeb20 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 64a47ab9-78bd-446d-a105-e4cdecebeb20 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d4aa2243-4fc4-490e-bb73-bbad0c02960c (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d4aa2243-4fc4-490e-bb73-bbad0c02960c', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d4aa2243-4fc4-490e-bb73-bbad0c02960c (::1) 12.050000ms referer=None 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 203s import functools 203s File "/usr/lib/python3.13/functools.py", line 18, in 203s from collections import namedtuple 203s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 203s from operator import eq as _eq 203s KeyboardInterrupt 203s ___________________ SessionAPITest.test_create_file_session ____________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56401 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35709 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp085roahq/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.190000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.710000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 64a47ab9-78bd-446d-a105-e4cdecebeb20 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 64a47ab9-78bd-446d-a105-e4cdecebeb20 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d4aa2243-4fc4-490e-bb73-bbad0c02960c (::1) 1.230000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9 (::1) 7.660000ms referer=None 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 203s from glob import _Globber, _no_recurse_symlinks 203s File "/usr/lib/python3.13/glob.py", line 5, in 203s import re 203s File "/usr/lib/python3.13/re/__init__.py", line 125, in 203s import enum 203s File "/usr/lib/python3.13/enum.py", line 1355, in 203s class StrEnum(str, ReprEnum): 203s ...<30 lines>... 203s return name.lower() 203s File "/usr/lib/python3.13/enum.py", line 1382, in StrEnum 203s def _generate_next_value_(name, start, count, last_values): 203s ...<3 lines>... 203s return name.lower() 203s File "/usr/lib/python3.13/enum.py", line 460, in __setitem__ 203s super().__setitem__(key, value) 203s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 203s KeyboardInterrupt 203s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 203s 203s self = 203s 203s def test_create_with_kernel_id(self): 203s # create a new kernel 203s r = self.request('POST', 'api/kernels') 203s r.raise_for_status() 203s kernel = r.json() 203s 203s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 203s self.assertEqual(resp.status_code, 201) 203s newsession = resp.json() 203s self.assertIn('id', newsession) 203s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 203s self.assertEqual(newsession['kernel']['id'], kernel['id']) 203s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 203s 203s sessions = self.sess_api.list().json() 203s > self.assertEqual(sessions, [newsession]) 203s E AssertionError: Lists differ: [{'id': 'b18cfef7-d460-418c-a1db-5146b3af6dc9', 'p[553 chars]ne}}] != [{'id': '3979fc20-597d-439f-b4a6-8501dd6a549f', 'p[279 chars]ne}}] 203s E 203s E First differing element 0: 203s E {'id': 'b18cfef7-d460-418c-a1db-5146b3af6dc9', 'p[218 chars]: 0}} 203s E {'id': '3979fc20-597d-439f-b4a6-8501dd6a549f', 'p[278 chars]one}} 203s E 203s E First list contains 1 additional elements. 203s E First extra element 1: 203s E {'id': '3979fc20-597d-439f-b4a6-8501dd6a549f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '88689c4a-6e85-4e69-a0be-8178ccbb2fcf', 'name': 'python3', 'last_activity': '2026-01-30T08:09:32.146641Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 203s E 203s E Diff is 830 characters long. Set self.maxDiff to None to see it. 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-88689c4a-6e85-4e69-a0be-8178ccbb2fcf.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45097 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38319 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88689c4a-6e85-4e69-a0be-8178ccbb2fcf, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.340000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.750000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.240000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55ee9ccc-4bbb-4aa0-b3cc-c20822624ec3 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b18cfef7-d460-418c-a1db-5146b3af6dc9 (::1) 2.860000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 8.580000ms referer=None 203s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Traceback (most recent call last): 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.040000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-bae95c2c-2918-4ad5-b358-e6c326244b86.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42677 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37145 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: bae95c2c-2918-4ad5-b358-e6c326244b86, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.020000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88689c4a-6e85-4e69-a0be-8178ccbb2fcf 203s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 3.000000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.090000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.860000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bae95c2c-2918-4ad5-b358-e6c326244b86 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bae95c2c-2918-4ad5-b358-e6c326244b86 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s --------------------------- Captured stderr teardown --------------------------- 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 203s from ._local import * 203s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 203s class _PathParents(Sequence): 203s ...<25 lines>... 203s return "<{}.parents>".format(type(self._path).__name__) 203s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 203s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 203s KeyboardInterrupt 203s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ----------------------------- Captured stderr call ----------------------------- 203s Exception ignored in: .KeyedRef.remove at 0x75976e3d0b80> 203s Traceback (most recent call last): 203s File "", line 82, in remove 203s KeyboardInterrupt: 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.260000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp085roahq/runtime/kernel-18f33f7a-e3ef-47da-9f4e-0b983257e978.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60063 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38669 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: 18f33f7a-e3ef-47da-9f4e-0b983257e978, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp085roahq/notebooks/foo'} 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bae95c2c-2918-4ad5-b358-e6c326244b86 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bae95c2c-2918-4ad5-b358-e6c326244b86 203s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 19.440000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.840000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 18f33f7a-e3ef-47da-9f4e-0b983257e978 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18f33f7a-e3ef-47da-9f4e-0b983257e978 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3979fc20-597d-439f-b4a6-8501dd6a549f', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 203s yielded = self.gen.send(value) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 203s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 203s stopper = ensure_async(km.shutdown_kernel(now, restart)) 203s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 203s return _runner_map[name].run(inner) 203s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 203s return fut.result(None) 203s ~~~~~~~~~~^^^^^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 203s return self.__get_result() 203s ~~~~~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 203s raise self._exception 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ---------------------------- Captured log teardown ----------------------------- 203s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 18f33f7a-e3ef-47da-9f4e-0b983257e978 203s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 203s _______________________ AsyncSessionAPITest.test_create ________________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log setup ------------------------------ 203s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmprk427avo/config', '/tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmprk427avo/etc/jupyter'] for config files 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprk427avo/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprk427avo/config 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprk427avo/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.crwF8L/autopkgtest_tmp/home/.local/etc/jupyter 203s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprk427avo/config 203s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmprk427avo/notebooks 203s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 203s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 203s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 203s WARNING NotebookApp:handlers.py:612 Forbidden 203s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.750000ms referer=None 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.110000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-fccbd48d-1943-4df5-95b4-518cf6c4bf08.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51297 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49781 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: fccbd48d-1943-4df5-95b4-518cf6c4bf08, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprk427avo/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.320000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.350000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c (::1) 5.370000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 5.130000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fccbd48d-1943-4df5-95b4-518cf6c4bf08 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fccbd48d-1943-4df5-95b4-518cf6c4bf08 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error 203s ERROR NotebookApp:log.py:55 { 203s "Host": "localhost:12341", 203s "Accept": "*/*", 203s "User-Agent": "python-requests/2.32.5" 203s } 203s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c (::1) 14.360000ms referer=None 203s --------------------------- Captured stderr teardown --------------------------- 203s Traceback (most recent call last): 203s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 203s return _run_code(code, main_globals, None, 203s "__main__", mod_spec) 203s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 203s exec(code, run_globals) 203s ~~~~^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 203s from pathlib import Path 203s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 203s from ._abc import * 203s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 203s import functools 203s File "/usr/lib/python3.13/functools.py", line 18, in 203s from collections import namedtuple 203s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 203s from operator import eq as _eq 203s File "", line 1360, in _find_and_load 203s File "", line 1331, in _find_and_load_unlocked 203s File "", line 935, in _load_unlocked 203s File "", line 1019, in exec_module 203s File "", line 1109, in get_code 203s File "", line 1232, in path_stats 203s File "", line 152, in _path_stat 203s KeyboardInterrupt 203s _______________ AsyncSessionAPITest.test_create_console_session ________________ 203s 203s @self.addCleanup 203s def cleanup_sessions(): 203s for session in self.sess_api.list().json(): 203s > self.sess_api.delete(session['id']) 203s 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 203s return self._req('DELETE', id) 203s ^^^^^^^^^^^^^^^^^^^^^^^ 203s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 203s response.raise_for_status() 203s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 203s 203s self = 203s 203s def raise_for_status(self): 203s """Raises :class:`HTTPError`, if one occurred.""" 203s 203s http_error_msg = "" 203s if isinstance(self.reason, bytes): 203s # We attempt to decode utf-8 first because some servers 203s # choose to localize their reason strings. If the string 203s # isn't utf-8, we fall back to iso-8859-1 for all other 203s # encodings. (See PR #3538) 203s try: 203s reason = self.reason.decode("utf-8") 203s except UnicodeDecodeError: 203s reason = self.reason.decode("iso-8859-1") 203s else: 203s reason = self.reason 203s 203s if 400 <= self.status_code < 500: 203s http_error_msg = ( 203s f"{self.status_code} Client Error: {reason} for url: {self.url}" 203s ) 203s 203s elif 500 <= self.status_code < 600: 203s http_error_msg = ( 203s f"{self.status_code} Server Error: {reason} for url: {self.url}" 203s ) 203s 203s if http_error_msg: 203s > raise HTTPError(http_error_msg, response=self) 203s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/799130f8-49dc-4fac-9d32-a9780e754d44 203s 203s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 203s ------------------------------ Captured log call ------------------------------- 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 203s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-f9e2e54c-1072-45fa-b497-e247f87664b6.json'] 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43513 203s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36867 203s INFO NotebookApp:kernelmanager.py:179 Kernel started: f9e2e54c-1072-45fa-b497-e247f87664b6, name: python3 203s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprk427avo/notebooks/foo'} 203s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.770000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 5.890000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fccbd48d-1943-4df5-95b4-518cf6c4bf08 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fccbd48d-1943-4df5-95b4-518cf6c4bf08 203s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/20067f3a-dd5e-428e-b5fb-66d24e2c388c (::1) 4.120000ms 203s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 203s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9e2e54c-1072-45fa-b497-e247f87664b6 203s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9e2e54c-1072-45fa-b497-e247f87664b6 203s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/799130f8-49dc-4fac-9d32-a9780e754d44 (::1) 203s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/799130f8-49dc-4fac-9d32-a9780e754d44', version='HTTP/1.1', remote_ip='::1') 203s Traceback (most recent call last): 203s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 203s result = await result 203s ^^^^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 203s future.result() 203s ~~~~~~~~~~~~~^^ 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 203s yield maybe_future(sm.delete_session(session_id)) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 203s yielded = self.gen.throw(exc) 203s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 203s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 203s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 203s value = future.result() 203s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 203s raise self._exception.with_traceback(self._exception_tb) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 203s result = coro.send(None) 203s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 203s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 203s raise km.ready.exception() # type: ignore[misc] 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 203s await kernel_awaitable 203s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 203s result = await obj 203s ^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 203s raise e 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 203s out = await method(self, *args, **kwargs) 203s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 203s await self._async_finish_shutdown(restart=restart) 203s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 203s await asyncio.wait_for( 203s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 203s ) 203s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 203s async with timeouts.timeout(timeout): 203s ~~~~~~~~~~~~~~~~^^^^^^^^^ 203s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 203s raise RuntimeError("Timeout should be used inside a task") 203s RuntimeError: Timeout should be used inside a task 203s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 203s gc.collect() 203s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 204s 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 204s import functools 204s File "/usr/lib/python3.13/functools.py", line 18, in 204s from collections import namedtuple 204s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 204s from keyword import iskeyword as _iskeyword 204s File "", line 1357, in _find_and_load 204s File "", line 418, in __enter__ 204s File "", line 311, in acquire 204s File "", line 170, in __enter__ 204s File "", line 132, in setdefault 204s File "", line 79, in __init__ 204s KeyboardInterrupt 204s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0ba0ffa5-7a4a-4c7f-be62-3c14fc9bb8d5 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-58ff9f89-5682-420b-9490-3605a1d19dfb.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43211 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41775 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58ff9f89-5682-420b-9490-3605a1d19dfb, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprk427avo/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.900000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.550000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9e2e54c-1072-45fa-b497-e247f87664b6 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9e2e54c-1072-45fa-b497-e247f87664b6 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/799130f8-49dc-4fac-9d32-a9780e754d44 (::1) 4.430000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58ff9f89-5682-420b-9490-3605a1d19dfb 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58ff9f89-5682-420b-9490-3605a1d19dfb 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0ba0ffa5-7a4a-4c7f-be62-3c14fc9bb8d5 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0ba0ffa5-7a4a-4c7f-be62-3c14fc9bb8d5', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0ba0ffa5-7a4a-4c7f-be62-3c14fc9bb8d5 (::1) 17.120000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1262, in _find_spec 204s File "", line 1556, in find_spec 204s File "", line 1530, in _get_spec 204s File "", line 1648, in find_spec 204s KeyboardInterrupt 204s _________________ AsyncSessionAPITest.test_create_file_session _________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-8efd12ae-8741-428a-b105-d807e581cde8.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38967 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55719 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8efd12ae-8741-428a-b105-d807e581cde8, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmprk427avo/notebooks/foo'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 23.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.680000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58ff9f89-5682-420b-9490-3605a1d19dfb 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58ff9f89-5682-420b-9490-3605a1d19dfb 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0ba0ffa5-7a4a-4c7f-be62-3c14fc9bb8d5 (::1) 3.070000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8efd12ae-8741-428a-b105-d807e581cde8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8efd12ae-8741-428a-b105-d807e581cde8 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55 (::1) 15.680000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 204s import functools 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1115, in get_code 204s File "", line 1215, in get_data 204s KeyboardInterrupt 204s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 204s 204s self = 204s 204s def test_create_with_kernel_id(self): 204s # create a new kernel 204s r = self.request('POST', 'api/kernels') 204s r.raise_for_status() 204s kernel = r.json() 204s 204s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 204s self.assertEqual(resp.status_code, 201) 204s newsession = resp.json() 204s self.assertIn('id', newsession) 204s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 204s self.assertEqual(newsession['kernel']['id'], kernel['id']) 204s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 204s 204s sessions = self.sess_api.list().json() 204s > self.assertEqual(sessions, [newsession]) 204s E AssertionError: Lists differ: [{'id': '330112d2-1463-40b0-9cc2-cb3788267a55', 'p[553 chars]ne}}] != [{'id': '812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', 'p[279 chars]ne}}] 204s E 204s E First differing element 0: 204s E {'id': '330112d2-1463-40b0-9cc2-cb3788267a55', 'p[218 chars]: 0}} 204s E {'id': '812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', 'p[278 chars]one}} 204s E 204s E First list contains 1 additional elements. 204s E First extra element 1: 204s E {'id': '812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '020c88b3-3be8-45fa-b1e9-19be739b87a6', 'name': 'python3', 'last_activity': '2026-01-30T08:09:32.825550Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 204s E 204s E Diff is 830 characters long. Set self.maxDiff to None to see it. 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 204s ----------------------------- Captured stderr call ----------------------------- 204s [IPKernelApp] ERROR | Current working directory doesn't exist. 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 204s from glob import _Globber, _no_recurse_symlinks 204s File "/usr/lib/python3.13/glob.py", line 5, in 204s import re 204s File "/usr/lib/python3.13/re/__init__.py", line 126, in 204s from . import _compiler, _parser 204s File "/usr/lib/python3.13/re/_compiler.py", line 16, in 204s from ._casefix import _EXTRA_CASES 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1262, in _find_spec 204s File "", line 1128, in find_spec 204s KeyboardInterrupt 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-020c88b3-3be8-45fa-b1e9-19be739b87a6.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43199 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35137 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 020c88b3-3be8-45fa-b1e9-19be739b87a6, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.200000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 5.200000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 5.000000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8efd12ae-8741-428a-b105-d807e581cde8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8efd12ae-8741-428a-b105-d807e581cde8 204s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/330112d2-1463-40b0-9cc2-cb3788267a55 (::1) 3.580000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 020c88b3-3be8-45fa-b1e9-19be739b87a6 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 020c88b3-3be8-45fa-b1e9-19be739b87a6 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 16.140000ms referer=None 204s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ----------------------------- Captured stderr call ----------------------------- 204s Traceback (most recent call last): 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.370000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-65768c16-2140-4b62-8fa5-c43960d775d3.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36179 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43829 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65768c16-2140-4b62-8fa5-c43960d775d3, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.440000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 020c88b3-3be8-45fa-b1e9-19be739b87a6 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 020c88b3-3be8-45fa-b1e9-19be739b87a6 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 3.600000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.980000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.960000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65768c16-2140-4b62-8fa5-c43960d775d3 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65768c16-2140-4b62-8fa5-c43960d775d3 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 16.460000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 204s from ipykernel import kernelapp as app 204s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 204s from .connect import * # noqa: F403 204s ^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 204s from subprocess import PIPE, Popen 204s File "/usr/lib/python3.13/subprocess.py", line 49, in 204s import signal 204s File "", line 1360, in _find_and_load 204s File "", line 1322, in _find_and_load_unlocked 204s File "", line 1262, in _find_spec 204s File "", line 1556, in find_spec 204s File "", line 1530, in _get_spec 204s File "", line 1629, in find_spec 204s File "", line 152, in _path_stat 204s KeyboardInterrupt 204s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 204s 204s @self.addCleanup 204s def cleanup_sessions(): 204s for session in self.sess_api.list().json(): 204s > self.sess_api.delete(session['id']) 204s 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 204s return self._req('DELETE', id) 204s ^^^^^^^^^^^^^^^^^^^^^^^ 204s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 204s response.raise_for_status() 204s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 204s 204s self = 204s 204s def raise_for_status(self): 204s """Raises :class:`HTTPError`, if one occurred.""" 204s 204s http_error_msg = "" 204s if isinstance(self.reason, bytes): 204s # We attempt to decode utf-8 first because some servers 204s # choose to localize their reason strings. If the string 204s # isn't utf-8, we fall back to iso-8859-1 for all other 204s # encodings. (See PR #3538) 204s try: 204s reason = self.reason.decode("utf-8") 204s except UnicodeDecodeError: 204s reason = self.reason.decode("iso-8859-1") 204s else: 204s reason = self.reason 204s 204s if 400 <= self.status_code < 500: 204s http_error_msg = ( 204s f"{self.status_code} Client Error: {reason} for url: {self.url}" 204s ) 204s 204s elif 500 <= self.status_code < 600: 204s http_error_msg = ( 204s f"{self.status_code} Server Error: {reason} for url: {self.url}" 204s ) 204s 204s if http_error_msg: 204s > raise HTTPError(http_error_msg, response=self) 204s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 204s 204s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 204s ------------------------------ Captured log call ------------------------------- 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.160000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 204s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprk427avo/runtime/kernel-5f0f8077-aee7-46b1-b5d4-aa9291923757.json'] 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37859 204s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53879 204s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5f0f8077-aee7-46b1-b5d4-aa9291923757, name: python3 204s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmprk427avo/notebooks/foo'} 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65768c16-2140-4b62-8fa5-c43960d775d3 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65768c16-2140-4b62-8fa5-c43960d775d3 204s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 16.920000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.030000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 204s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 204s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5f0f8077-aee7-46b1-b5d4-aa9291923757 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5f0f8077-aee7-46b1-b5d4-aa9291923757 204s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 204s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0', version='HTTP/1.1', remote_ip='::1') 204s Traceback (most recent call last): 204s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 204s result = await result 204s ^^^^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 204s future.result() 204s ~~~~~~~~~~~~~^^ 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 204s yield maybe_future(sm.delete_session(session_id)) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 204s yielded = self.gen.throw(exc) 204s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 204s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 204s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 204s value = future.result() 204s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 204s raise self._exception.with_traceback(self._exception_tb) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 204s result = coro.send(None) 204s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 204s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 204s raise km.ready.exception() # type: ignore[misc] 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 204s await kernel_awaitable 204s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 204s result = await obj 204s ^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 204s raise e 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 204s out = await method(self, *args, **kwargs) 204s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 204s await self._async_finish_shutdown(restart=restart) 204s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 204s await asyncio.wait_for( 204s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 204s ) 204s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 204s async with timeouts.timeout(timeout): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^ 204s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 204s raise RuntimeError("Timeout should be used inside a task") 204s RuntimeError: Timeout should be used inside a task 204s WARNING NotebookApp:handlers.py:612 Unhandled error 204s ERROR NotebookApp:log.py:55 { 204s "Host": "localhost:12341", 204s "Accept": "*/*", 204s "User-Agent": "python-requests/2.32.5" 204s } 204s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/812beb8c-7b6e-48c4-a5c3-dd2986e1bdc0 (::1) 10.410000ms referer=None 204s --------------------------- Captured stderr teardown --------------------------- 204s Traceback (most recent call last): 204s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 204s return _run_code(code, main_globals, None, 204s "__main__", mod_spec) 204s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 204s exec(code, run_globals) 204s ~~~~^^^^^^^^^^^^^^^^^^^ 204s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 204s from pathlib import Path 204s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 204s from ._abc import * 204s File "", line 1360, in _find_and_load 204s File "", line 1331, in _find_and_load_unlocked 204s File "", line 935, in _load_unlocked 204s File "", line 1019, in exec_module 204s File "", line 1152, in get_code 204s File "", line 781, in _compile_bytecode 204s KeyboardInterrupt 204s ---------------------------- Captured log teardown ----------------------------- 204s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9e2e54c-1072-45fa-b497-e247f87664b6 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 020c88b3-3be8-45fa-b1e9-19be739b87a6 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8efd12ae-8741-428a-b105-d807e581cde8 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58ff9f89-5682-420b-9490-3605a1d19dfb 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5f0f8077-aee7-46b1-b5d4-aa9291923757 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65768c16-2140-4b62-8fa5-c43960d775d3 204s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fccbd48d-1943-4df5-95b4-518cf6c4bf08 204s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 204s =============================== warnings summary =============================== 204s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 204s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 204s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 204s return LooseVersion(v) >= LooseVersion(check) 204s 204s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 204s services/kernels/tests/test_kernels_api.py: 71 warnings 204s services/sessions/tests/test_sessions_api.py: 88 warnings 204s /usr/lib/python3/dist-packages/notebook/_tz.py:29: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 204s dt = unaware(*args, **kwargs) 204s 204s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 204s /usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.integration_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 204s pytestmark = pytest.mark.integration_tests 204s 204s services/kernels/tests/test_kernels_api.py: 6 warnings 204s services/sessions/tests/test_sessions_api.py: 6 warnings 204s /usr/lib/python3/dist-packages/nest_asyncio.py:71: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 204s policy = events.get_event_loop_policy() 204s 204s services/kernels/tests/test_kernels_api.py: 24 warnings 204s services/sessions/tests/test_sessions_api.py: 19 warnings 204s /usr/lib/python3/dist-packages/nest_asyncio.py:40: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 204s loop = events.get_event_loop_policy().get_event_loop() 204s 204s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 204s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 204s loop.make_current() 204s 204s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 204s /usr/lib/python3.14/selectors.py:452: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 204s fd_event_list = self._selector.poll(timeout, max_ev) 204s Enable tracemalloc to get traceback where the object was allocated. 204s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 204s 204s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 204s =========================== short test summary info ============================ 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 204s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 204s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 204s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 204s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 204s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 204s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 204s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 6.29s ========== 204s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 204s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 204s autopkgtest [08:09:34]: test pytest: -----------------------] 205s autopkgtest [08:09:35]: test pytest: - - - - - - - - - - results - - - - - - - - - - 205s pytest FAIL non-zero exit status 1 205s autopkgtest [08:09:35]: @@@@@@@@@@@@@@@@@@@@ summary 205s pytest FAIL non-zero exit status 1